Work around scroll adjustment moved to workspaces display #785

This commit is contained in:
Jason DeRose
2019-10-27 17:12:30 -04:00
parent 19b7b80102
commit 0b334b22af

View File

@@ -403,7 +403,7 @@ var dtpPanelManager = Utils.defineClass({
view = new WorkspacesView.WorkspacesView(i);
view.actor.connect('scroll-event', this._onScrollEvent.bind(this));
if (i == Main.layoutManager.primaryIndex) {
if (i == Main.layoutManager.primaryIndex && view.scrollAdjustment) {
this._scrollAdjustment = view.scrollAdjustment;
this._scrollAdjustment.connect('notify::value',
this._scrollValueChanged.bind(this));