File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -76,4 +76,10 @@ export function hasPointerCapture(id) {
7676 return el . hasPointerCapture ( id ) ;
7777 } ;
7878 } ;
79+ }
80+
81+ export function maxTouchPoints ( nav ) {
82+ return function ( ) {
83+ return nav . maxTouchPoints ;
84+ } ;
7985}
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import Web.Internal.FFI (unsafeReadProtoTagged)
3636import Web.UIEvent.UIEvent (UIEvent )
3737import Web.UIEvent.MouseEvent (MouseEvent )
3838import Web.DOM.Element (Element )
39+ import Web.HTML.Navigator (Navigator )
3940
4041foreign import data PointerEvent :: Type
4142data PointerType = Mouse | Touch | Pen
@@ -87,3 +88,5 @@ foreign import getPredictedEvents :: PointerEvent -> Array PointerEvent
8788foreign import setPointerCapture :: PointerId -> Element -> Effect Unit
8889foreign import releasePointerCapture :: PointerId -> Element -> Effect Unit
8990foreign import hasPointerCapture :: PointerId -> Element -> Effect Boolean
91+
92+ foreign import maxTouchPoints :: Navigator -> Effect Int
You can’t perform that action at this time.
0 commit comments