Skip to content

Commit

Permalink
Bump to 0.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Mar 20, 2014
1 parent d3cde0c commit 2d1005b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions History.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@

0.2.2 / 2014-03-20
==================

* fix `@miniScrollView.data('top')` doesn't reset to 0 after switch with files

0.2.1 / 2014-03-20
==================

Expand Down
6 changes: 3 additions & 3 deletions lib/minimap-view.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ class MinimapView extends View
@miniOverlayer[0].style.webkitTransform =
@miniOverlayer[0].style.transform = 'translate3d(0, ' + (n * (miniOverLayerHeight / scaleY - miniOverLayerHeight)) + 'px, 0)'
else
@miniScrollView.data('top', 0)
@miniOverlayer[0].style.webkitTransform =
@miniOverlayer[0].style.transform = 'translate3d(0, ' + (n * (@miniEditorView.height() - miniOverLayerHeight)) + 'px, 0)'

Expand All @@ -182,9 +183,8 @@ class MinimapView extends View
# @note: currently, no animation.
@editorView.scrollTop(top)
# Fix trigger `mousewheel` event.
self = this
setTimeout ->
self.isClicked = false
setTimeout =>
@isClicked = false
, 377

transform: (width, scale, xy) ->
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "minimap",
"main": "./lib/minimap",
"version": "0.2.1",
"version": "0.2.2",
"private": true,
"description": "A preview of the full source code.",
"activationEvents": [
Expand Down

0 comments on commit 2d1005b

Please sign in to comment.