Last modified: 2014-06-11 21:26:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T60482, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 58482 - Nearby scrolls the page even if it is not required
Nearby scrolls the page even if it is not required
Status: RESOLVED FIXED
Product: MobileFrontend
Classification: Unclassified
beta (Other open bugs)
unspecified
All All
: Unprioritized minor
: ---
Assigned To: Nobody - You can work on this!
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-12-14 13:32 UTC by Derk-Jan Hartman
Modified: 2014-06-11 21:26 UTC (History)
10 users (show)

See Also:
Web browser: Apple Safari
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Derk-Jan Hartman 2013-12-14 13:32:32 UTC
Clicking the icon automatically scrolls my window to 1 pixel below the top of the view frame. First, it shouldn't be messing with the scrolling to begin with. Second, it's especially annoying that even if you are already at the top of the page, it scrolls 1 pixel down. Using Firefox 25 on MacOS. Kaldari (talk) 15:14, 27 November 2013 (UTC)

Confirmed by me on Apple Safari 7 as well.
Comment 1 Bingle 2013-12-14 13:45:28 UTC
Prioritization and scheduling of this bug is tracked on Mingle card https://wikimedia.mingle.thoughtworks.com/projects/mobile/cards/1510
Comment 2 Mark Nelson 2014-01-23 17:42:09 UTC
I looked into this a bit. The scroll happens in all overlays that request "full-screen" using the mobile-overlay code in MobileFrontend/javascripts/common/Overlay.js. There's a deliberate window.scrollTo(0,1) that does it, with the comment "skip the URL bar if possible".

On desktop this is pointless, but on mobile it does succeed in "full-screening": in many mobile browsers, the URL-bar is shown iff the window is scrolled all the way to the top. So setting the scroll 1px down has the effect of hiding the URL-bar and giving the overlay fullscreen.

Possibilities:

1. Is there a less hackish way of hiding the URL bar on mobile?

2. Avoid scrolling on desktop.

A more general version of #2 is "properly manage overlays on desktop". The current bridge in MobileFrontend/javascripts/desktop is rather minimal and doesn't *really* produce overlays that work well on desktop. For example the X to close the overlay is currently broken on desktop (works on mobile), though perhaps a separate bug should be filed for that.
Comment 3 Jon 2014-01-24 19:08:00 UTC
Hey DJ thanks for raising this. We will have to rethink the scrollTo mechanism. 

Maybe the scroll top behaviour might be binded to an event which lives in the mobile codebase instead?
Or we could conditionally scroll to top based on user agent / mode / screen size.
Comment 4 Derk-Jan Hartman 2014-01-24 20:10:30 UTC
I guess a generic mw.hook of mobile, or hooking it to specific detected devices yes
Comment 5 Ocean behind ears 2014-02-13 13:41:18 UTC
I tested this on Android using the default browser, but I was not ale to reproduce this bug. Any tips?
Comment 6 Mark Nelson 2014-02-14 09:10:37 UTC
On Android it works fine. The scrollTo behavior producing an unexpected UI effect (scrolling one pixel from the top) happens on desktop, for people who have enabled the Nearby beta feature.
Comment 7 Jon 2014-05-23 16:32:17 UTC
Is this still an issue now the Nearby beta feature was disabled? I suspect the new version will not have this issue.
Comment 8 Maryana Pinchuk 2014-06-11 21:26:41 UTC
Closing as fixed because the UI has changed a lot since the bug was originally reported. Feel free to reopen if still an issue.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links