-
-
Save unlucio/0bd7f7c8b456fd768f5a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function mouseup(evt) { | |
var contentList = this.cont.list; | |
var [start, end] = [contentList.indexOf(_lastItemSelected), contentList.indexOf(this)].sort(); | |
if (_isDD) { | |
return; | |
} | |
if (evt.shiftKey == true) { | |
for (var i = start; i <= end ; i++) { | |
this.selectItem(contentList[i]); | |
} | |
} else { | |
if (this.elem.hasClassName('mkdd-selected')) { | |
this.elem.removeClassName('mkdd-selected'); | |
} else { | |
this.selectItem(this); | |
} | |
} | |
_lastItemSelected = this; | |
this.isMouseup = true; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment