Open
Description
On my iOS device, I consistently get identifiers like 1757034706 and -1260722569, while the haskell bindings think it should be Word. This ends up making it impossible to keep track of individual touch events.
/cc @hamishmack
Touch.idl looks like this:
[
Conditional=TOUCH_EVENTS,
ImplementationLacksVTable
] interface Touch {
readonly attribute long clientX;
readonly attribute long clientY;
readonly attribute long screenX;
readonly attribute long screenY;
readonly attribute long pageX;
readonly attribute long pageY;
readonly attribute EventTarget target;
readonly attribute unsigned long identifier;
readonly attribute long webkitRadiusX;
readonly attribute long webkitRadiusY;
readonly attribute unrestricted float webkitRotationAngle;
readonly attribute unrestricted float webkitForce;
};
while GHCJS.DOM.JSFFI.Generated.Touch has this:
foreign import javascript unsafe "$1[\"identifier\"]"
js_getIdentifier :: Touch -> IO Word
-- | <https://developer.mozilla.org/en-US/docs/Web/API/Touch.identifier Mozilla Touch.identifier documentation>
getIdentifier :: (MonadIO m) => Touch -> m Word
getIdentifier self = liftIO (js_getIdentifier self)
Metadata
Assignees
Labels
No labels