cykod / Quintus

HTML5 Game Engine
http://html5quintus.com
GNU General Public License v2.0
1.41k stars 401 forks source link

Fix for Q.InputSystem.touchControls() #117

Closed ghost closed 10 years ago

ghost commented 10 years ago

See: https://github.com/cykod/Quintus/issues/116

ghost commented 10 years ago

I forgot to fix the minY in the conditional just replace it for:

if(pos.x >= minX && pos.x <= (minX+opts.size) && (opts.fullHeight || (pos.y >= minY + opts.gutter && pos.y <= (minY+opts.unit - opts.gutter))))
 {
      return opts.controls[i][0];
 }

Sorry I closed this by accident.