[WebGL] UI drag in Edge browser

Hi! My WebGL game is published on Facebook. I have an issue when Empty document icon randomly appears in Edge browser if I’m trying to drag some UI elements (buttons for example). My steps are:

  • press UI button and hold it (1-2 seconds)
  • drag mouse cursor when pressed
  • empty document icon appeared (marked with red frame on screenshot)

How can I avoid such behaviour? Looks like drag & drop function in Edge working with WebGL content.

@hippogames Try this, on your WebGL Template after loading the game do this:
document.getElementsByTagName('canvas')[0].ondragstart = function() { return false; };

This worked for me.