Closed Bug 1203879 Opened 5 years ago Closed 4 years ago

Rethink the relationship between APZ, wheel event, and AccessibleCaret

Categories

(Core :: DOM: Selection, defect)

defect
Not set

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: TYLin, Unassigned)

References

(Blocks 1 open bug)

Details

In bug 1200194 comment 30, :masayuki pointed out that wheel start and wheel end events work only on Mac OS X. That is, the carets does not follow the spec that they are hidden while scrolling on Linux.

However, we can use AsyncPanZoomStarted and AsyncPanZoomStopped on Mac to replace wheel start and wheel end since bug 1013412.

AFAIK, when APZ is enabled, there should be AsyncPanZoomStarted() and AsyncPanZoomStopped() callback, but not necessarily the long-tap event (on desktop). To make carets' behavior more customizable, we could add two preferences:

1) Use synthesized long-tap event or not. We should turn this on for the platforms which do not enable APZ yet or APZ does not support long-tap events.
2) Hide carets during scrolling or not. We can support this if the platform has APZ enabled.
Depends on: 1210315
Depends on: 1211365
What I want to do is done in those dependent bugs.
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.