Skip to content

Commit

Permalink
fixing firefox touch dragging (#1296)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexreardon authored May 8, 2019
1 parent ea4270a commit 56239d6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/view/use-drag-handle/sensor/use-touch-sensor.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,8 @@ export default function useTouchSensor(args: Args): OnTouchStart {
eventName: 'touchmove',
// Opting out of passive touchmove (default) so as to prevent scrolling while moving
// Not worried about performance as effect of move is throttled in requestAnimationFrame
options: { passive: false },
// Using `capture: false` due to a recent horrible firefox bug: https://twitter.com/alexandereardon/status/1125904207184187393
options: { passive: false, capture: false },
fn: (event: TouchEvent) => {
// Drag has not yet started and we are waiting for a long press.
if (!isDraggingRef.current) {
Expand Down

0 comments on commit 56239d6

Please sign in to comment.