File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -296,10 +296,10 @@ namespace Gala {
296296 }
297297
298298 private bool on_multitasking_gesture_detected (Gesture gesture) {
299- if (gesture. type != Clutter . EventType . TOUCHPAD_SWIPE ||
300- (gesture. fingers == 3 && GestureSettings . get_string (" three -finger-swipe-up" ) != " multitasking-view" ) ||
301- (gesture . fingers == 4 && GestureSettings . get_string ( " four-finger-swipe-up " ) != " multitasking-view " )
302- ) {
299+ var fingers = (gesture. fingers == 3 && GestureSettings . get_string ( " three-finger-swipe-up " ) == " multitasking-view " ) ||
300+ (gesture. fingers == 4 && GestureSettings . get_string (" four -finger-swipe-up" ) == " multitasking-view" );
301+
302+ if (gesture . type != Clutter . EventType . TOUCHPAD_SWIPE || ! fingers ) {
303303 return false ;
304304 }
305305
@@ -323,7 +323,8 @@ namespace Gala {
323323 (gesture. direction == GestureDirection . LEFT || gesture. direction == GestureDirection . RIGHT );
324324
325325 var fingers = (gesture. fingers == 3 && Gala . GestureSettings . get_string (" three-finger-swipe-horizontal" ) == " switch-to-workspace" ) ||
326- (gesture. fingers == 4 && Gala . GestureSettings . get_string (" four-finger-swipe-horizontal" ) == " switch-to-workspace" );
326+ (gesture. fingers == 4 && Gala . GestureSettings . get_string (" four-finger-swipe-horizontal" ) == " switch-to-workspace" ) ||
327+ (gesture. performed_on_device_type == TOUCHSCREEN_DEVICE && gesture. fingers == 1 );
327328
328329 if (gesture. type == Clutter . EventType . SCROLL || (can_handle_swipe && fingers)) {
329330 var direction = workspace_gesture_tracker. settings. get_natural_scroll_direction (gesture);
You can’t perform that action at this time.
0 commit comments