MCPcopy Create free account
hub / github.com/GNOME/gnome-shell / _onScrollEvent

Method _onScrollEvent

js/ui/workspacesView.js:1086–1098  ·  view source on GitHub ↗
(actor, event)

Source from the content-addressed store, hash-verified

1084 }
1085
1086 _onScrollEvent(actor, event) {
1087 if (this._swipeTracker.canHandleScrollEvent(event))
1088 return Clutter.EVENT_PROPAGATE;
1089
1090 if (!this.mapped)
1091 return Clutter.EVENT_PROPAGATE;
1092
1093 if (this._workspacesOnlyOnPrimary &&
1094 this._getMonitorIndexForEvent(event) !== this._primaryIndex)
1095 return Clutter.EVENT_PROPAGATE;
1096
1097 return Main.wm.handleWorkspaceScroll(event);
1098 }
1099
1100 _onKeyPressEvent(actor, event) {
1101 const {ControlsState} = OverviewControls;

Callers

nothing calls this directly

Calls 3

handleWorkspaceScrollMethod · 0.80
canHandleScrollEventMethod · 0.45

Tested by

no test coverage detected