Skip to content
Browse files

Merge pull request #623 from adamjimenez/patch-8

Fix to work with Jsmin
  • Loading branch information...
2 parents 006c712 + 52edab9 commit 5b6e24dd0953e4728766bd8d6c807a48e9ec61cd @fjakobs fjakobs committed
Showing with 2 additions and 4 deletions.
  1. +2 −4 lib/ace/virtual_renderer.js
View
6 lib/ace/virtual_renderer.js
@@ -726,12 +726,10 @@ var VirtualRenderer = function(container, theme) {
var canvasPos = this.scroller.getBoundingClientRect();
var col = Math.round(
- (pageX + this.scrollLeft - canvasPos.left - this.$padding - dom.getPageScrollLeft())
- / this.characterWidth
+ (pageX + this.scrollLeft - canvasPos.left - this.$padding - dom.getPageScrollLeft()) / this.characterWidth
);
var row = Math.floor(
- (pageY + this.scrollTop - canvasPos.top - dom.getPageScrollTop())
- / this.lineHeight
+ (pageY + this.scrollTop - canvasPos.top - dom.getPageScrollTop()) / this.lineHeight
);
return this.session.screenToDocumentPosition(row, Math.max(col, 0));

0 comments on commit 5b6e24d

Please sign in to comment.
Something went wrong with that request. Please try again.