From 57ba67f30662d7d7b3850b89ea0b2e3240ab49e4 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Tue, 16 Jun 2020 15:32:38 +0200 Subject: [PATCH] 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. --- core/rfb.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/core/rfb.js b/core/rfb.js index 4d1b6159..f35d503f 100644 --- a/core/rfb.js +++ b/core/rfb.js @@ -588,11 +588,6 @@ export default class RFB extends EventTargetMixin { } _focusCanvas(event) { - // Respect earlier handlers' request to not do side-effects - if (event.defaultPrevented) { - return; - } - if (!this.focusOnClick) { return; }