You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using several canvases on the screen. And when I click on the one, which is partially visible it is scrolled to the top of the window.
I have found that behavior because of if (event.type == "mousedown") { _canvas.focus();. Do you really need to set focus on every click? I suppose that browser will do it automatically does'n it?
The text was updated successfully, but these errors were encountered:
Hi, yes you are correct - this line causes the scrolling. I think it was necessary to receive keyboard events, if your would not call the focus() method explicitly, then the keyboard events are not sent. I will do some tests and get back to you asap!
I am using several canvases on the screen. And when I click on the one, which is partially visible it is scrolled to the top of the window.
I have found that behavior because of
if (event.type == "mousedown") { _canvas.focus();
. Do you really need to set focus on every click? I suppose that browser will do it automatically does'n it?The text was updated successfully, but these errors were encountered: