mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-27 12:50:09 +00:00

This shouldn't change behavior but makes following the code a bit easier. There's no point in using callbacks for touch-action as: * We return the computed flags anyways. * Each caller wants to do something different. * (more importantly) The callback gets called synchronously. So move the relevant code to TouchActionHelper and make the callers deal with the flags as they please. I've preserved the behavior of only doing the thing if the flags array is non-empty. Differential Revision: https://phabricator.services.mozilla.com/D134933