diff options
-rw-r--r-- | components/compositing/touch.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/components/compositing/touch.rs b/components/compositing/touch.rs index bc75f5ab7c1..b3793ece116 100644 --- a/components/compositing/touch.rs +++ b/components/compositing/touch.rs @@ -236,7 +236,14 @@ impl TouchHandler { Flinging { .. } => { unreachable!("On touchup received, but already flinging.") }, - WaitingForScript | DefaultPrevented | MultiTouch => { + WaitingForScript => { + if self.active_touch_points.is_empty() { + self.state = Nothing; + return TouchAction::Click; + } + TouchAction::NoAction + }, + DefaultPrevented | MultiTouch => { if self.active_touch_points.is_empty() { self.state = Nothing; } |