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).

  -- Emilio
dev-platform mailing list

Reply via email to