On 09/03/2021 18:21, Emilio Cobos Álvarez wrote:
On 3/9/21 17:10, Anne van Kesteren wrote:

On Tue, Mar 9, 2021 at 4:45 PM Emilio Cobos Álvarez <emi...@mozilla.com> wrote:
Let me know if you have any concerns with this or what not.

So if I understand it correctly we'll have a getter with side effects.
Is the expectation that we can eventually remove this? Are other
browsers on board with this model?

Well, the side effect is not _quite_ that bad IMO, in the sense that the page can't really tell whether the event is returning pixels because the scroll was actually pixel-based (e.g., trackpads do this IIRC) or because they didn't check deltaMode.

The only alternative to this that I can think of is basically never return DOM_DELTA_LINE (which is what other browsers do in practice), but that seemed both more risky for us, and also a potential regression (knowing lines can be useful).

It seems like having all browsers have the same behaviour is going to be better in the long run than having some weird heuristic in gecko that acts as a footgun for authors going forward.

Do we have any way to assess the compat impact of switching to match Blink and WebKit always?
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to