Page MenuHomePhabricator

"back" in map full screen should return to article
Closed, ResolvedPublic

Description

When user enters map full screen mode, clicking "back" is not the same as "cancel". This might affect mobile users, as they might not see the "close" button at all due to the screen size.

@jhobs, weren't you solving this exact problem for Zero? Any suggestions for maps full screen code? Try it here.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

@Yurik My solution was adding a route (via url hash) for the dialogs and inserting them into the page history. Then, listen to the route change event and exit fullscreen if there's no hash fragment.

Change 283374 had a related patch set uploaded (by JGirault):
Adds a router to Kartographer, fixes back button in fullscreen mode, and allows sharing a link that opens a map in fullscreen mode.

https://gerrit.wikimedia.org/r/283374

Change 283374 merged by jenkins-bot:
Adds a router to Kartographer, fixes back button in fullscreen mode, and allows sharing a link that opens a map in fullscreen mode.

https://gerrit.wikimedia.org/r/283374