Skip to content

Commit

Permalink
Potential fix for weird MacOS behaviour
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalBingBong committed Feb 10, 2018
1 parent 3f1a9ef commit 1a32bdd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/controllers/AppMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ export default class AppMenu {
accelerator: "Right",
click() {
if(Window.currentWindow.isFocused()) {
Viewer.next()
Viewer.next()
}
}
})
Expand All @@ -157,7 +157,7 @@ export default class AppMenu {
accelerator: "Left",
click() {
if(Window.currentWindow.isFocused()) {
Viewer.previous()
Viewer.previous()
}
}
})
Expand Down
6 changes: 6 additions & 0 deletions app/src/modules/Viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,11 +226,17 @@ class Viewer {

next() {
this._stopcurrent()
if(Window.selectFolderWindow) {
return
}
return this.mediafiles.next
}

previous() {
this._stopcurrent()
if(Window.selectFolderWindow) {
return
}
return this.mediafiles.previous
}

Expand Down

0 comments on commit 1a32bdd

Please sign in to comment.