Last modified: 2014-08-28 23:02:07 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 T72111, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 70111 - VisualEditor Mobile: The page focus always bumps up to the top irrespective of cursor position
VisualEditor Mobile: The page focus always bumps up to the top irrespective o...
Status: ASSIGNED
Product: VisualEditor
Classification: Unclassified
Mobile (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Editing team bugs – take if you're interested!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-27 23:20 UTC by Rummana Yasmeen
Modified: 2014-08-28 23:02 UTC (History)
7 users (show)

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


Attachments

Description Rummana Yasmeen 2014-08-27 23:20:45 UTC
Steps to reproduce:

1.Open a page with mobile VE
2.Tap somewhere in the middle of the page or towards the end

Observed Result:
The page focus bumps up to the top of the page, not getting scrolled down to the point where the cursor is actually positioned.
Comment 1 Juliusz Gonera 2014-08-27 23:40:19 UTC
"The page focus bumps up to the top of the page" - you mean the page is scrolled to the top or the cursor moves to the top?
Comment 2 Rummana Yasmeen 2014-08-27 23:42:47 UTC
The page scrolls up, the cursor is correctly positioned with the fix of https://bugzilla.wikimedia.org/show_bug.cgi?id=66697
Comment 3 Juliusz Gonera 2014-08-28 21:14:26 UTC
Correction: the page doesn't scroll up. It should scroll up when the keyboard opens and covers up the cursor. Instead, the page stays in place.

This is because we no longer scroll the whole page on iOS (we scroll inside of a div) and Safari's default mechanism for preventing the cursor from being covered by the keyboard doesn't work anymore (that's my guess).

I think an easy solution would be to implement scrolling the CE on focus in such a way that the cursor ends up being close to the top of the screen. This way the keyboard won't occult it. We have to keep in mind though that this code should only run on iOS (which is easy because we already let MobileViewTarget know that we're on iOS using isIos config argument).
Comment 4 Juliusz Gonera 2014-08-28 22:23:48 UTC
Maryana said that she doesn't consider that very high priority so I might not get to it before I leave. Unassigning myself.

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


Navigation
Links