Skip to content

Commit

Permalink
Added touch-event on space backvround to activate space.
Browse files Browse the repository at this point in the history
  • Loading branch information
jtaala committed Jan 22, 2024
1 parent b7c7ec2 commit 21efa47
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tiling.js
Original file line number Diff line number Diff line change
Expand Up @@ -1637,8 +1637,13 @@ border-radius: ${borderWidth}px;
Navigator.finishNavigation();
});

this.signals.connect(
this.background, 'scroll-event',
// ensure this space is active if touched
this.signals.connect(this.background, 'touch-event',
(actor, event) => {
this.activateWithFocus(this.selectedWindow, false, false);
});

this.signals.connect(this.background, 'scroll-event',
(actor, event) => {
if (!inGrab && !Navigator.navigating)
return;
Expand Down

0 comments on commit 21efa47

Please sign in to comment.