UNPKG

@mui/x-internal-gestures

Version:

The core engine of GestureEvents, a modern and robust multi-pointer gesture detection library for JavaScript.

39 lines (38 loc) 882 B
import _extends from "@babel/runtime/helpers/esm/extends"; import { Gesture } from "../../core/index.js"; export class MockBadUpdateStateGesture extends Gesture { constructor(...args) { super(...args); this.state = { isDragging: false, startPosition: { x: 0, y: 0 } }; this.isSinglePhase = void 0; this.eventType = void 0; this.optionsType = void 0; this.mutableOptionsType = void 0; this.mutableStateType = void 0; } resetState() { this.state = { isDragging: false, startPosition: { x: 0, y: 0 } }; } clone(overrides) { return new MockBadUpdateStateGesture(_extends({ name: this.name }, overrides)); } // Override updateState to prevent updates // This simulates a broken implementation updateState(_) { // Deliberately do nothing } }