diff options
Diffstat (limited to 'js/tool.js')
| -rw-r--r-- | js/tool.js | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -13,7 +13,7 @@ var Tool = Model({ current_tool = this this.span.classList.add('focused') this.use() - if (this.name != 'shader') { cursor_input.focus() } + if (this.name != 'shader' && is_desktop) { cursor_input.focus() } }, blur: function(){ current_tool = null @@ -38,14 +38,14 @@ var Checkbox = Tool.extend({ var BlurredCheckbox = Checkbox.extend({ focus: function(){ this.use() - if (this.name != 'shader') { cursor_input.focus() } + if (this.name != 'shader' && is_desktop) { cursor_input.focus() } } }) var BlurredTool = Tool.extend({ focus: function(){ this.use() - if (this.name != 'shader') { cursor_input.focus() } + if (this.name != 'shader' && is_desktop) { cursor_input.focus() } } }) |
