Allow use of horizontal scrolling axis for forecast. Fixes #207

merge-requests/218/head
Jens Lody 7 years ago
parent 21f82996a5
commit a86b949025
  1. 3
      src/extension.js

@ -1645,12 +1645,13 @@ const OpenweatherMenuButton = new Lang.Class({
let dy = 0;
switch (event.get_scroll_direction()) {
case Clutter.ScrollDirection.UP:
case Clutter.ScrollDirection.RIGHT:
dy = -1;
break;
case Clutter.ScrollDirection.DOWN:
case Clutter.ScrollDirection.LEFT:
dy = 1;
break;
// horizontal scrolling will be handled by the control itself
default:
return true;
}

Loading…
Cancel
Save