Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit a21288d

Browse files
committed
work around dart2wasm bug
1 parent 3ca695f commit a21288d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/web_ui/lib/src/engine/pointer_binding.dart

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,10 @@ class ClickDebouncer {
349349
// It's only interesting to debounce clicks when both `pointerdown` and
350350
// `pointerup` land on the same element.
351351
if (event.type == 'pointerup') {
352-
final bool targetChanged = event.target != state.target;
352+
// TODO(yjbanov): this is a bit mouthful, but see https://github.com/dart-lang/sdk/issues/53070
353+
final DomEventTarget? eventTarget = event.target;
354+
final DomElement stateTarget = state.target;
355+
final bool targetChanged = eventTarget != stateTarget;
353356
if (targetChanged) {
354357
_flush();
355358
}

0 commit comments

Comments
 (0)