mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix an event reference in widget hooks (#29108)
(and drop an unused eslint setting)
This commit is contained in:
parent
d6961c9a35
commit
b614b72852
@ -1,4 +1,3 @@
|
|||||||
/*eslint no-loop-func:0*/
|
|
||||||
import $ from "jquery";
|
import $ from "jquery";
|
||||||
|
|
||||||
const CLICK_ATTRIBUTE_NAME = "_discourse_click_widget";
|
const CLICK_ATTRIBUTE_NAME = "_discourse_click_widget";
|
||||||
@ -134,7 +133,7 @@ function dragStart(e) {
|
|||||||
|
|
||||||
function drag(e) {
|
function drag(e) {
|
||||||
const widget = _currentlyDraggingElement[DRAG_ATTRIBUTE_NAME];
|
const widget = _currentlyDraggingElement[DRAG_ATTRIBUTE_NAME];
|
||||||
if (event.type === "mousemove") {
|
if (e.type === "mousemove") {
|
||||||
widget.drag(e);
|
widget.drag(e);
|
||||||
} else {
|
} else {
|
||||||
const tt = e.targetTouches[0];
|
const tt = e.targetTouches[0];
|
||||||
|
Loading…
Reference in New Issue
Block a user