[gnome-shell] layout: Cap each event to 15px of motion
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] layout: Cap each event to 15px of motion
- Date: Wed, 27 Feb 2013 19:02:04 +0000 (UTC)
commit 01bd10f485c18b794228cece8adc68299aa20b35
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Feb 21 17:19:04 2013 -0500
layout: Cap each event to 15px of motion
When pressing against the bottom of the screen, we shouldn't
really take more than 15px from each event, to prevent spruious
mouse movements from opening the barrier.
https://bugzilla.gnome.org/show_bug.cgi?id=694467
js/ui/layout.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/js/ui/layout.js b/js/ui/layout.js
index ad0ed42..f8b91b7 100644
--- a/js/ui/layout.js
+++ b/js/ui/layout.js
@@ -1330,7 +1330,7 @@ const PressureBarrier = new Lang.Class({
this._trimBarrierEvents();
this._barrierEvents.push(event);
- this._currentPressure += distance;
+ this._currentPressure += Math.min(15, distance);
if (this._currentPressure >= this._threshold) {
this.emit('trigger');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]