Open Bug 560968 Opened 15 years ago Updated 3 years ago

Support elastic scollboxes (touch screens)

Categories

(Toolkit :: UI Widgets, defect)

defect

Tracking

()

People

(Reporter: mfinkle, Unassigned)

References

Details

(Keywords: mobile)

Attachments

(1 file, 1 obsolete file)

In mobile and other touch screen software, scrolling is usually done using touch panning. It is typical for such panning to appear to "over-scroll" when reaching the beginning or end of the scrollable region. We should add a mode to the scrollbox widget to support this elastic, over-scroll behavior.
OS: Mac OS X → All
Hardware: x86 → All
Assignee: nobody → mbrubeck
Attached patch WIP (obsolete) — Splinter Review
Not production-ready code - just a quick proof of concept I'm using for prototyping.
Attached patch WIP 2Splinter Review
Split out the new code into a self-contained XBL binding. Known issues: * Only works for horizontal scrolling; need to change this to work for vertical scrolling too, maybe depending on the "orient" attribute. (For Fennec at least, we have separate vertical and horizontal scrollboxes so we don't need a single control to do both at once.) * Having to specify an explicit margin size is ugly. The margins should be auto-sized based on the content size. * Snap-back should be animated (but allow animation to be disabled if necessary for performance). Mark, any thoughts on the API you would like to see for the elastic scrollbox control? This is the first significant amount of XBL I have written, so I appreciate any pointers.
Attachment #444994 - Flags: feedback?(mark.finkle)
Attachment #444895 - Attachment is obsolete: true
Depends on: 585680
Attachment #444994 - Flags: feedback?(mark.finkle)
Assignee: mbrubeck → nobody
Version: unspecified → Trunk
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: