[gnome-shell/gbsneto/new-lock-screen-part2: 23/41] screenShield: Remove scrolling
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/gbsneto/new-lock-screen-part2: 23/41] screenShield: Remove scrolling
- Date: Thu, 5 Dec 2019 15:36:21 +0000 (UTC)
commit f9dcfa625ff9cf00f9764a524faf4477d3a51201
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Nov 28 20:11:17 2019 -0300
screenShield: Remove scrolling
https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/872
js/ui/screenShield.js | 22 ----------------------
1 file changed, 22 deletions(-)
---
diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js
index db764d35f5..da2fa9a9d3 100644
--- a/js/ui/screenShield.js
+++ b/js/ui/screenShield.js
@@ -57,8 +57,6 @@ var ScreenShield = class {
});
this._lockScreenGroup.connect('key-press-event',
this._onLockScreenKeyPress.bind(this));
- this._lockScreenGroup.connect('scroll-event',
- this._onLockScreenScroll.bind(this));
Main.ctrlAltTabManager.addGroup(this._lockScreenGroup, _("Lock"), 'changes-prevent-symbolic');
this._lockDialogGroup = new St.Widget({ x_expand: true,
@@ -226,25 +224,6 @@ var ScreenShield = class {
return Clutter.EVENT_STOP;
}
- _onLockScreenScroll(actor, event) {
- if (this._lockScreenState != MessageTray.State.SHOWN)
- return Clutter.EVENT_PROPAGATE;
-
- let delta = 0;
- if (event.get_scroll_direction() == Clutter.ScrollDirection.SMOOTH)
- delta = Math.abs(event.get_scroll_delta()[0]);
- else
- delta = 5;
-
- this._lockScreenScrollCounter += delta;
-
- // 7 standard scrolls to lift up
- if (this._lockScreenScrollCounter > 35)
- this._liftShield();
-
- return Clutter.EVENT_STOP;
- }
-
_syncInhibitor() {
let lockEnabled = this._settings.get_boolean(LOCK_ENABLED_KEY);
let lockLocked = this._lockSettings.get_boolean(DISABLE_LOCK_KEY);
@@ -511,7 +490,6 @@ var ScreenShield = class {
this._lockScreenState = MessageTray.State.SHOWN;
this._lockScreenGroup.fixed_position_set = false;
- this._lockScreenScrollCounter = 0;
if (params.fadeToBlack && params.animateFade) {
// Take a beat
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]