GrapesJS / grapesjs

Free and Open source Web Builder Framework. Next generation tool for building templates without coding
https://grapesjs.com
BSD 3-Clause "New" or "Revised" License
22.38k stars 4.05k forks source link

BUG: touch drag-and-drop does not work #4256

Closed m-jojo-s closed 2 years ago

m-jojo-s commented 2 years ago

GrapesJS version

What browser are you using?

Chrome Version 98.0.4758.80 (Official Build) (arm64)

Reproducible demo link

https://jsfiddle.net/bd2kpjwf/

Describe the bug

How to reproduce the bug?

  1. Add two components
  2. Open browser dev-tools and enable device mode (CMD+SHIFT+M)
  3. Drag and drop components around

What is the expected behavior? Components get moved around

What is the current behavior? Nothing happens. Drag isn't registered

Including the gjs-touch plugin does not work either. Any leads would be appreciated.

Code of Conduct

artf commented 2 years ago

The touch plugin polyfill will work only if you load it with touch device already enabled (try to use the demo), so if you enable touch device later it won't work.