MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / bindEvents

Method bindEvents

src/pages/quickTools/quickTools.js:179–191  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

177 }
178
179 bindEvents() {
180 const c = this.container;
181 c.addEventListener("touchstart", this.handleTouchStart.bind(this), {
182 passive: false,
183 });
184 c.addEventListener("touchmove", this.handleTouchMove.bind(this), {
185 passive: false,
186 });
187 c.addEventListener("touchend", this.handleTouchEnd.bind(this));
188 c.addEventListener("contextmenu", (e) => e.preventDefault());
189
190 c.addEventListener("mousedown", this.handleMouseDown.bind(this));
191 }
192
193 // --- Touch Handlers ---
194

Callers 1

constructorMethod · 0.95

Calls 1

preventDefaultMethod · 0.45

Tested by

no test coverage detected