Open nekojanai opened 5 years ago
Seems like this issue isn't trivial to resolve or is it? The problem is related to this change in Chrome. And this library attaches the event via jQuery and the guys over there also didn't come up with a solution yet.
I haven't looked into it that much, but will have to at some point, so...
Anyone more experienced that may be able to comment on my naive assumption that it could be as easy as changing this line: https://github.com/dsmorse/gridster.js/blob/7cf095da2c189bae4d7deae4886af4ba0437953e/src/jquery.draggable.js#L306 to use the vanilla js variant of attaching events plus including the options hash? with passive: false
Tried to drag a widget in chrome dev tools mobile view, console went haywire with the following error:
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See <URL>
[Intervention] Unable to preventDefault inside passive event listener due to target being treated as passive. See https://www.chromestatus.com/features/5093566007214080
How I intitialized gridster: