Closed Bug 817671 Opened 12 years ago Closed 12 years ago

[AccessFu] Fix window scrolling

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla20

People

(Reporter: eeejay, Assigned: eeejay)

Details

Attachments

(1 file)

The scroll() method takes an absolute value (scroll to position), not a relative value (scroll by value). Currently the latter is done.
Above a mean the DOM window.scroll()
Attachment #687838 - Flags: review?(dbolter)
Comment on attachment 687838 [details] [diff] [review]
Fix window scrolling

Review of attachment 687838 [details] [diff] [review]:
-----------------------------------------------------------------

r=me. I haven't tested.

::: accessible/src/jsat/content-script.js
@@ -191,5 @@
>      // Scroll window.
>      if (!horiz && content.scrollMaxY &&
>          ((page > 0 && content.scrollY < content.scrollMaxY) ||
>           (page < 0 && content.scrollY > 0))) {
> -      content.scroll(0, content.innerHeight);

Heh. That was funny :)
Attachment #687838 - Flags: review?(dbolter) → review+
https://hg.mozilla.org/integration/mozilla-inbound/rev/0e182b6179f6

Oops. I put blassey's name on the r+
Assignee: nobody → eitan
https://hg.mozilla.org/mozilla-central/rev/0e182b6179f6
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla20
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: