MCPcopy
hub / github.com/metafizzy/flickity / fakeEvent

Function fakeEvent

test/unit/drag.js:11–19  ·  view source on GitHub ↗
( type, pageX )

Source from the content-addressed store, hash-verified

9var fakeDrag = window.fakeDrag = function( flkty, positions ) {
10
11 function fakeEvent( type, pageX ) {
12 return {
13 type: type,
14 pageX: pageX,
15 pageY: 0,
16 preventDefault: noop,
17 target: flkty.viewport,
18 };
19 }
20
21 var hasBeenDown = false;
22

Callers 1

triggerEventFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…