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

Commit 776518d

Browse files
committed
Cast coalesced pointer events to avoid typecheck errors
1 parent b7281b9 commit 776518d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -520,7 +520,7 @@ class _PointerAdapter extends _BaseAdapter with _WheelEventListenerMixin {
520520
// using the original event.
521521
if (js_util.hasProperty(event, 'getCoalescedEvents')) {
522522
final List<html.PointerEvent> coalescedEvents =
523-
event.getCoalescedEvents();
523+
event.getCoalescedEvents().cast<html.PointerEvent>();
524524
// Some events don't perform coalescing, so they return an empty list. In
525525
// that case, we also fallback to using the original event.
526526
if (coalescedEvents.isNotEmpty) {

0 commit comments

Comments
 (0)