[gnome-maps/wip/kinetic: 2/2] MapView: Use kinetic mode
- From: Mattias Bengtsson <mattiasb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/kinetic: 2/2] MapView: Use kinetic mode
- Date: Thu, 31 Jul 2014 20:32:21 +0000 (UTC)
commit 3e985dbb47c4f294dd871d16d53aec27be82bf0f
Author: Mattias Bengtsson <mattias jc bengtsson gmail com>
Date: Thu Jul 31 22:28:46 2014 +0200
MapView: Use kinetic mode
With kinetic mode turned on Maps panning in Maps feels much much
smoother.
Thanks to Dario who stumbled over this property.
src/mapView.js | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/mapView.js b/src/mapView.js
index ce913a9..3ac6624 100644
--- a/src/mapView.js
+++ b/src/mapView.js
@@ -75,6 +75,7 @@ const MapView = new Lang.Class({
view.min_zoom_level = MapMinZoom;
view.goto_animation_mode = Clutter.AnimationMode.EASE_IN_OUT_CUBIC;
view.reactive = true;
+ view.kinetic_mode = true;
view.connect('notify::latitude', this._onViewMoved.bind(this));
view.connect('notify::longitude', this._onViewMoved.bind(this));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]