Alway focus on touchstart

The new gesture detection code will always prevent the default behaviour
of touchstart, so this check no longer works properly. We might want to
add something similar to GestureHandler in the future, but let's wait
and see what use cases are requested.
This commit is contained in:
Pierre Ossman 2020-06-16 15:32:38 +02:00
parent 48f15efa69
commit 57ba67f306
1 changed files with 0 additions and 5 deletions

View File

@ -588,11 +588,6 @@ export default class RFB extends EventTargetMixin {
} }
_focusCanvas(event) { _focusCanvas(event) {
// Respect earlier handlers' request to not do side-effects
if (event.defaultPrevented) {
return;
}
if (!this.focusOnClick) { if (!this.focusOnClick) {
return; return;
} }