Skip to content

Commit 2f03bd6

Browse files
committed
atoms: Mouse button should be released even if the target is not interactable. Fixes issue 7491
1 parent 6b4e6de commit 2f03bd6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/atoms/mouse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ bot.Mouse.prototype.releaseButton = function() {
291291
// element becomes non-interactable after the mouseup.
292292
var elementInteractableBeforeMouseup =
293293
bot.dom.isInteractable(this.getElement());
294-
this.fireMouseEvent_(bot.events.EventType.MOUSEUP);
294+
this.fireMouseEvent_(bot.events.EventType.MOUSEUP, null, null, true);
295295

296296
// TODO: Middle button can also trigger click.
297297
if (this.buttonPressed_ == bot.Mouse.Button.LEFT &&

0 commit comments

Comments
 (0)