Skip to content

Commit

Permalink
🐛 Fix screen change handler making scrolling in the minimap impossible
Browse files Browse the repository at this point in the history
  • Loading branch information
abe33 committed Oct 20, 2016
1 parent 12f7e2f commit f98b54d
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/minimap.js
Original file line number Diff line number Diff line change
Expand Up @@ -627,9 +627,11 @@ export default class Minimap {
* @param {number} width the new width of the Minimap
*/
setScreenHeightAndWidth (height, width) {
this.height = height
this.width = width
this.updateScrollTop()
if (this.width !== width || this.height !== height) {
this.height = height
this.width = width
this.updateScrollTop()
}
}

/**
Expand Down

0 comments on commit f98b54d

Please sign in to comment.