Fix drag sometimes starting from wrong button

This commit is contained in:
Rafostar
2020-09-02 09:06:34 +02:00
parent 7307845646
commit 2333d8fc1c

View File

@@ -149,6 +149,8 @@ var App = GObject.registerClass({
let [res, button] = event.get_button();
if(!res) return;
this.dragStartReady = false;
switch(button) {
case Gdk.BUTTON_PRIMARY:
this._handlePrimaryButtonPress(event, button);