未验证 提交 879525a9 编写于 作者: F Ferhat 提交者: GitHub

Remove sink parameter since _BaseAdapter exposes _callback (#22335)

上级 1db7f340
......@@ -290,8 +290,7 @@ mixin _WheelEventListenerMixin on _BaseAdapter {
);
}
void _handleWheelEvent(
html.Event e, void Function(Iterable<ui.PointerData>) sink) {
void _handleWheelEvent(html.Event e) {
assert(e is html.WheelEvent);
final html.WheelEvent event = e as html.WheelEvent;
if (_debugLogPointerEvents) {
......@@ -537,7 +536,7 @@ class _PointerAdapter extends _BaseAdapter with _WheelEventListenerMixin {
});
_addWheelEventListener((html.Event event) {
_handleWheelEvent(event, _callback);
_handleWheelEvent(event);
});
}
......@@ -809,7 +808,7 @@ class _MouseAdapter extends _BaseAdapter with _WheelEventListenerMixin {
}, acceptOutsideGlasspane: true);
_addWheelEventListener((html.Event event) {
_handleWheelEvent(event, _callback);
_handleWheelEvent(event);
});
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册