Closed
Bug 784410
Opened 12 years ago
Closed 12 years ago
Scrolling by the turn of the mouse wheel stops working on certain element
Categories
(Core :: Layout, defect)
Tracking
()
RESOLVED
FIXED
mozilla18
People
(Reporter: alice0775, Assigned: roc)
References
Details
(Keywords: regression)
Attachments
(3 files, 1 obsolete file)
(deleted),
text/html
|
Details | |
(deleted),
patch
|
MatsPalmgren_bugz
:
review+
akeybl
:
approval-mozilla-aurora+
akeybl
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
MatsPalmgren_bugz
:
review+
lsblakk
:
approval-mozilla-aurora+
lsblakk
:
approval-mozilla-beta+
|
Details | Diff | Splinter Review |
http://hg.mozilla.org/mozilla-central/rev/360ab7771e27
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0 ID:20120821030519
Scrolling by the turn of the mouse wheel does not work sometimes.
This happens regardless of HWA.
This happens Firefox14, 15Beta, Aurora16.0a2 and Nightly17.0a1.
And this makes me annoy.
Steps To Reproduce:
1. Start Firefox with clean profile(no add-ons and no plug-ins)
2. Open https://developer.mozilla.org/en-US/docs/Storage
3. Find "nsresult rv = mDBConn->CreateStatement"
4. left Click on the paragraph(Code Syntax highlighter?)
5. Try to scroll with mouse wheel carefully(one tick)
6. Repeat step 4 and 5
Actual Results:
Scrolling by the turn of the mouse wheel does not work sometimes.
And fonts in the element moves up/down 1 pixel.
Expected Results:
Scroll the page
Reporter | ||
Comment 1•12 years ago
|
||
Screen capture:
http://youtu.be/kHnN3JjBYrI
Reporter | ||
Comment 2•12 years ago
|
||
Reporter | ||
Comment 3•12 years ago
|
||
Attachment #653852 -
Attachment is obsolete: true
Reporter | ||
Comment 5•12 years ago
|
||
Regression window(m-i)
Good:
http://hg.mozilla.org/mozilla-central/rev/6fe7dd2f8f57
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120510021321
Bad:
http://hg.mozilla.org/mozilla-central/rev/b7b6565d12a0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120510050721
Pushlog:
http://hg.mozilla.org/mozilla-central/pushloghtml?fromchange=6fe7dd2f8f57&tochange=b7b6565d12a0
Regression window(m-i)
Good:
http://hg.mozilla.org/integration/mozilla-inbound/rev/b5304fd23df9
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120509222721
Bad:
http://hg.mozilla.org/integration/mozilla-inbound/rev/67091352b7d2
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/15.0 Firefox/15.0a1 ID:20120509223521
Pushlog:
http://hg.mozilla.org/integration/mozilla-inbound/pushloghtml?fromchange=b5304fd23df9&tochange=67091352b7d2
Last good: c3d3bfb3b68d
First bad: 9d9a3edaa0b9
Triggered by
9d9a3edaa0b9 Robert O'Callahan — Bug 681192. Part 11: Don't snap scrollrange endpoints to device pixels anymore. r=matspal
Blocks: 681192
tracking-firefox15:
--- → ?
tracking-firefox16:
--- → ?
tracking-firefox17:
--- → ?
Keywords: regression
Reporter | ||
Updated•12 years ago
|
Component: General → Layout
Reporter | ||
Comment 6•12 years ago
|
||
And
In Caret Browsing Mode, this problem can see easily
Steps To Reproduce:
1. Start Firefox with clean profile(no add-ons and no plug-ins)
2. Open https://developer.mozilla.org/en-US/docs/Storage
3. Turn on "Caret Browsing Mode" (F7)
4. Find "nsresult rv = mDBConn->CreateStatement"
5. left Click on the paragraph
6. Press "Page UP" key
Actual Results:
the element moves up 1 pixel.
Expected Results:
Scrolls the document up one screenful.
Reporter | ||
Updated•12 years ago
|
OS: Windows 7 → All
Comment 7•12 years ago
|
||
At this stage in FF15 release, we're too late to track this and it's not a chemspill-worthy issue but we'll track for 16/17.
Assignee | ||
Comment 8•12 years ago
|
||
This is tricky. The text on each line of the code samples actually overflows the line a little bit, I think because the line-height is 1.1em but the font ascenders and descenders stick out of the line a little. So we think the code sample overflows its overflow:auto container a little bit (less than a pixel in this case). If you zoom in a lot, you can see vertical scrollbars on the examples. This content should be using overflow-x:auto overflow-y:hidden, really, or changing its line-height.
Having said that, nsHTMLScrollFrame::TryLayout refuses to show the vertical scrollbar in the unzoomed case unless we can scroll by at least one device pixel, and in this case we can't. The code in nsLayoutUtils::GetNearestScrollableFrameForDirection and nsLayoutUtils::GetNearestScrollableFrame should do the same.
Assignee | ||
Comment 9•12 years ago
|
||
Assignee: nobody → roc
Attachment #654523 -
Flags: review?(matspal)
Comment 10•12 years ago
|
||
Did you forget to include nsLayoutUtils::GetNearestScrollableFrameForDirection
in the patch? (comment 8 mentioned it should have the same change)
If so, perhaps we should share this code, in say
bool nsIScrollableFrame::CanScrollInDirection(Direction aDirection)
Comment 11•12 years ago
|
||
Nevermind, I see that this is GetNearestScrollableFrameForDirection actually
although the diff says otherwise, and GetNearestScrollableFrame
doesn't have this check...
Comment 12•12 years ago
|
||
Comment on attachment 654523 [details] [diff] [review]
fix
Looks fine, r=mats
Attachment #654523 -
Flags: review?(matspal) → review+
Assignee | ||
Comment 13•12 years ago
|
||
Assignee | ||
Comment 14•12 years ago
|
||
Comment on attachment 654523 [details] [diff] [review]
fix
Review of attachment 654523 [details] [diff] [review]:
-----------------------------------------------------------------
Annoying user-facing regression. Needs to be fixed ASAP.
Attachment #654523 -
Flags: approval-mozilla-beta?
Attachment #654523 -
Flags: approval-mozilla-aurora?
Assignee | ||
Comment 15•12 years ago
|
||
(Low risk too)
Comment 16•12 years ago
|
||
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla18
Comment 17•12 years ago
|
||
Comment on attachment 654523 [details] [diff] [review]
fix
[Triage Comment]
Low risk fix for a recent Firefox regression that may cause user pain. Approving for branches.
Attachment #654523 -
Flags: approval-mozilla-beta?
Attachment #654523 -
Flags: approval-mozilla-beta+
Attachment #654523 -
Flags: approval-mozilla-aurora?
Attachment #654523 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 18•12 years ago
|
||
https://hg.mozilla.org/releases/mozilla-aurora/rev/c896d87bbe70
https://hg.mozilla.org/releases/mozilla-beta/rev/8082d8212064
status-firefox16:
--- → fixed
status-firefox17:
--- → fixed
Reporter | ||
Comment 19•12 years ago
|
||
I tested with STR in comment#0 and attachment 653866 [details] as well,
I can still reproduce.
It seems nothing changed.
http://hg.mozilla.org/mozilla-central/rev/a86b00fa6bc6
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:18.0) Gecko/18.0 Firefox/18.0 ID:20120904030512
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Reporter | ||
Comment 20•12 years ago
|
||
And I can reproduce the problem in Aurora17.a2 and Beta16. It seems nothing changed.
http://hg.mozilla.org/releases/mozilla-aurora/rev/c896d87bbe70
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/17.0 Firefox/17.0 ID:20120905040812
http://hg.mozilla.org/releases/mozilla-beta/rev/8082d8212064
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20120904 Firefox/16.0 ID:20120905041410
Reporter | ||
Comment 21•12 years ago
|
||
I can also reproduce in the following page.
http://www.natural-science.or.jp/article/20120220155529.php#h2_1
"サンプル1:tutorial1.html(視点と光源の設定、立方体の描画)"
Updated•12 years ago
|
Assignee | ||
Comment 22•12 years ago
|
||
I fixed scrolling with the keyboard, but not with the mousewheel, which of course is what Alice originally filed this about.
Assignee | ||
Comment 23•12 years ago
|
||
Attachment #660701 -
Flags: review?(matspal)
Comment 24•12 years ago
|
||
Comment on attachment 660701 [details] [diff] [review]
mousewheel fix
r=mats
Attachment #660701 -
Flags: review?(matspal) → review+
Assignee | ||
Comment 25•12 years ago
|
||
Assignee | ||
Comment 26•12 years ago
|
||
Comment on attachment 660701 [details] [diff] [review]
mousewheel fix
Review of attachment 660701 [details] [diff] [review]:
-----------------------------------------------------------------
Another simple fix for this user-annoying bug.
Attachment #660701 -
Flags: approval-mozilla-beta?
Attachment #660701 -
Flags: approval-mozilla-aurora?
Comment 27•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
Attachment #660701 -
Flags: approval-mozilla-beta?
Attachment #660701 -
Flags: approval-mozilla-beta+
Attachment #660701 -
Flags: approval-mozilla-aurora?
Attachment #660701 -
Flags: approval-mozilla-aurora+
Assignee | ||
Comment 28•12 years ago
|
||
You need to log in
before you can comment on or make changes to this bug.
Description
•