Skip to content

Commit

Permalink
Increase buffer to fix some them incompatibilities.
Browse files Browse the repository at this point in the history
  • Loading branch information
rockon999 committed Sep 15, 2017
1 parent c465aa2 commit f055494
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions [email protected]/intellifade.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ function _updateBounds() {
let buffer = 2;

// Adjust for bottom panel.
if (anchor_y > buffer * this.scale_factor) { // eslint-disable-line no-magic-numbers
if (anchor_y > buffer * this.scale_factor) {
let rect1_y = anchor_y;
this.panel_bounds.y = rect1_y;
} else if (pivot_y > buffer * this.scale_factor) { // eslint-disable-line no-magic-numbers
} else if (pivot_y > buffer * this.scale_factor) {
let rect1_y = pivot_y;
this.panel_bounds.y = rect1_y;
}
Expand Down Expand Up @@ -134,7 +134,7 @@ function _check() {
maximized_window = focused_window;
} else {
// TODO: Check this.
let buffer = 2;
let buffer = 3;

// TODO: Always negative? Is pivot negative?
for (let i = windows.length - 1; i >= 0; i--) {
Expand Down

0 comments on commit f055494

Please sign in to comment.