Small mouse hold bug for mobile devices. Make fat thumbs not be an issue

master
sigonasr2 4 years ago
parent fa706bbff6
commit 2223446b9a
  1. BIN
      The Great Conversion.zip
  2. BIN
      branch_ex.png
  3. BIN
      conveyor_ex.png
  4. 9
      game.js
  5. BIN
      screenshot1.png
  6. BIN
      screenshot2.png
  7. BIN
      screenshot3.png
  8. BIN
      screenshot4.png
  9. BIN
      screenshot5.png
  10. BIN
      writer_ex.png

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

@ -166,6 +166,8 @@ var LASTPOSITIONUPDATE = 0
var BRIDGEDBELT = false
var ALLOWEDTOCLICK = true
var MOBILE = false
var BELTDOWN = {type:"BELT",direction:DOWN/*,direction2 - defines a secondary direction. For two belts at once.*/}
@ -307,6 +309,8 @@ function goHome() {
GRID_X=20
GRID_Y=20
ITEM_SELECTED=undefined
MOUSEDOWN=false
ALLOWEDTOCLICK=false
endARound()
for (var button of MENU.buttons) {
if (button.submenu_buttons) {
@ -1693,6 +1697,8 @@ function releaseEvent(e) {
}
}
ALLOWEDTOCLICK=true
if (MOVEMODE) {
STARTDRAG=undefined
}
@ -2681,8 +2687,9 @@ function DisplayMenu(x,y,menu,ctx) {
var colWidth = menu.width/menu.cols
var levelBoxBounds = {x:x+col*colWidth-((menu.cols!==1)?colWidth:colWidth/2),y:y+24+24*row,w:colWidth,h:16}
if (MouseOverBounds(levelBoxBounds)) {
if (MOUSEDOWN) {
if (MOUSEDOWN&&ALLOWEDTOCLICK) {
MOUSEDOWN=false
ALLOWEDTOCLICK=false
loadStage(menu.levels[i])
gameState=WAITING
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 322 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 246 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 466 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 427 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 225 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Loading…
Cancel
Save