Skip to content

Commit

Permalink
fix width/height typo
Browse files Browse the repository at this point in the history
This fixes the problem with previews not working in portrait mode
addressed in #160
  • Loading branch information
GrylledCheez committed Jul 28, 2023
1 parent cfdc501 commit b7785bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -768,7 +768,7 @@ function checkIfNearGrid(app) {
var rowHeight = Math.floor(space.height / rowCount);

var inMonitorBounds = false;
if (mouseX >= monitor.x && mouseX < monitor.x + monitor.width && mouseY >= monitor.y && mouseY < monitor.y + monitor.width)
if (mouseX >= monitor.x && mouseX < monitor.x + monitor.width && mouseY >= monitor.y && mouseY < monitor.y + monitor.height)
inMonitorBounds = true;

let window = app.get_frame_rect();
Expand Down

0 comments on commit b7785bb

Please sign in to comment.