Created
March 25, 2014 13:36
-
-
Save jespada/9761889 to your computer and use it in GitHub Desktop.
view.js double click
This file contains hidden or 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
| var self = this; | |
| this.clickFocusable = true; | |
| this.el.dblclick(function() { | |
| if (self.clickFocusable) { | |
| self.focus(); | |
| } | |
| }); | |
| }; | |
| types.View = View; |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
or something like focus only when clicking not when selecting (when you release the selection will trigger focus b default):