https://bugzilla.wikimedia.org/show_bug.cgi?id=67140

--- Comment #15 from Ryan Kaldari <rkald...@wikimedia.org> ---
OK, I think I know what's going on. When you click on the search input, the
search overlay renders at the top of the page. When there isn't a CentralNotice
banner, it renders under the user's finger. When there is a CentralNotice
banner (that's tall enough), it renders above the user's finger. The
SearchOverlay.js code includes a bit of logic (lines 70-73) that executes
window.history.back() whenever the user clicks outside of the overlay. This
normally just closes the overlay due to the M.router functionality. In this
case, the user clicking on the search input is getting read as a click outside
the search overlay (assuming the user's finger remains on the screen for more
than a split-second). Because either the URL hasn't been rewritten yet or the
M.router code hasn't finished executing, it actually sends the user to the
previous page when it executes window.history.back() (instead of just closing
the overlay).

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to