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) {
76
76
return el . hasPointerCapture ( id ) ;
77
77
} ;
78
78
} ;
79
+ }
80
+
81
+ export function maxTouchPoints ( nav ) {
82
+ return function ( ) {
83
+ return nav . maxTouchPoints ;
84
+ } ;
79
85
}
Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ import Web.Internal.FFI (unsafeReadProtoTagged)
36
36
import Web.UIEvent.UIEvent (UIEvent )
37
37
import Web.UIEvent.MouseEvent (MouseEvent )
38
38
import Web.DOM.Element (Element )
39
+ import Web.HTML.Navigator (Navigator )
39
40
40
41
foreign import data PointerEvent :: Type
41
42
data PointerType = Mouse | Touch | Pen
@@ -87,3 +88,5 @@ foreign import getPredictedEvents :: PointerEvent -> Array PointerEvent
87
88
foreign import setPointerCapture :: PointerId -> Element -> Effect Unit
88
89
foreign import releasePointerCapture :: PointerId -> Element -> Effect Unit
89
90
foreign 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