diff options
author | Marcus Lundblad <ml@dfupdate.se> | 2022-11-22 18:28:17 +0100 |
---|---|---|
committer | Marcus Lundblad <ml@dfupdate.se> | 2022-11-22 18:28:17 +0100 |
commit | c6be97003d57a7a28eb3a4bc3d212f8a3888a61b (patch) | |
tree | e5938e311e94d41c06b2fa80a15f6cf66a0b4f9a | |
parent | fdd051c6ec135ecfa50fa090cf94309ef1cc4b56 (diff) | |
download | gnome-maps-wip/mlundblad/touch-only-long-press.tar.gz |
mapView: Set long press gesture as touch-onlywip/mlundblad/touch-only-long-press
Fixes long press gesture on actual touch screens.
Also avoids activating the context menu on long press
of primary button, as we already show it on secondary
button click.
-rw-r--r-- | src/mapView.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mapView.js b/src/mapView.js index be341e6d..4266ae94 100644 --- a/src/mapView.js +++ b/src/mapView.js @@ -191,7 +191,7 @@ export class MapView extends Gtk.Overlay { this._clickGesture.connect('pressed', this._onClickGesturePressed.bind(this)); this.add_controller(this._clickGesture); - this._longPressGesture = new Gtk.GestureLongPress();; + this._longPressGesture = new Gtk.GestureLongPress({ touch_only: true });; this._longPressGesture.connect('pressed', this._onLongPressGesturePressed.bind(this)); this.add_controller(this._longPressGesture); |