Skip to content

Commit

Permalink
modify defaulty mobile-drag-drop lib behaviour - add flag to forceful… (
Browse files Browse the repository at this point in the history
#2342)

* modify defaulty mobile-drag-drop lib behaviour - add flag to forcefully apply polyfilling (see timruffles/mobile-drag-drop#167 for more)

* add comment for the forceApply flag

Co-authored-by: Murat Merdoglu <64781656+muratmerdoglu-dp@users.noreply.github.com>
  • Loading branch information
bn-pass and muratmerdoglu-dp authored Dec 19, 2022
1 parent 3d92b4d commit d62a26c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/plugins/polyfills.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ import { scrollBehaviourDragImageTranslateOverride } from "mobile-drag-drop/scro
polyfill({
// use this to make use of the scroll behaviour
dragImageTranslateOverride: scrollBehaviourDragImageTranslateOverride,
// this flag is set as a workaround of polyfill not applying e.g. on iPads because of a browser requesting
// full-type website, see https://github.com/timruffles/mobile-drag-drop/issues/167 for more
forceApply: true,
});

// console.log("mobileDragAndDrop loaded", polyfill);

0 comments on commit d62a26c

Please sign in to comment.