File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -202,12 +202,11 @@ class MinimapView extends View
202202 @isClicked = false
203203 , 377
204204
205- onScrollViewResized : =>
206- @ updateMinimapView ()
205+ onScrollViewResized : => @ updateMinimapView ()
207206
208207 onDragStart : (e ) =>
209208 # only supports for left-click
210- return unless e .which is 1
209+ return if e .which isnt 1
211210 @isPressed = true
212211 @ on ' mousemove.visible-area' , @onMove
213212 @ on ' mouseup.visible-area' , @onDragEnd
@@ -221,8 +220,7 @@ class MinimapView extends View
221220
222221 # OTHER PRIVATE METHODS
223222
224- activeTabSupportMinimap : ->
225- @ getEditor ()
223+ activeTabSupportMinimap : -> @ getEditor ()
226224
227225 scale : (x = 1 ,y = 1 ) -> " scale(#{ x} , #{ y} ) "
228226 translateY : (y = 0 ) -> " translate3d(0, #{ y} px, 0)"
You can’t perform that action at this time.
0 commit comments