Skip to content
This repository has been archived by the owner on Nov 8, 2017. It is now read-only.

Commit

Permalink
Only pass left-clicks to the UI.
Browse files Browse the repository at this point in the history
  • Loading branch information
Fishrock123 committed Jan 28, 2014
1 parent 7b59ed4 commit cefd431
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ui/ui.coffee
Expand Up @@ -243,6 +243,9 @@ window.ui =
topUI = isOnTopUI(target)

if topUI
# Constrain UI to left clicks only.
return if e.which isnt 1

switch topUI
when "menu"
@menu.menu(target.id)?._click(e)
Expand Down

0 comments on commit cefd431

Please sign in to comment.