Open JTorresConsulta opened 6 months ago
Hi! @JTorresConsulta
In this case we use the "user-select" property. It seems that iPads and iPhones do not detect it correctly.
I don't have an iPhone to test, but it could be that disabling the "touch-action" property works.
https://developer.mozilla.org/en-US/docs/Web/CSS/touch-action
If you haven't found this issue on stackoverflow: https://stackoverflow.com/questions/16613503/webkit-user-select-none-not-working
That's also a demo! Of some library functionalities.
Hi @jerosoler !
Yes I tried disabling the touch and selection but iPhone navigators do not recognize the "right" click of mouse, then the X symbol to delete nodes not appear :(
What is the function where this is triggering? Is possible to trigger with double click event too?
Thanks !! :))
Try add event dobleclick:
editor.container.addEventListener('dblclick',(e) => {
if(editor.node_selected !== null) {
editor.contextmenu(e);
}
});
Opening the demo in my iPhone: https://jerosoler.github.io/Drawflow/
When I try to remove module holding down the screen, the module text is selected but not the delete option appear.
Thanks, congratulations for the good job :)