button == 2 ? ed_tilesize_default :
button == 3 ? ed_tilesize / 2 : ed_tilesize);
+ // when using touch device, cycle through all zoom tilesizes
+ if (runtime.uses_touch_device && ed_tilesize > TILESIZE)
+ ed_tilesize = MICRO_TILESIZE;
+
// limit zoom level by upper and lower bound
ed_tilesize = MIN(MAX(MICRO_TILESIZE, ed_tilesize), TILESIZE);
else if (key == KSYM_Escape)
DrawLevelText(0, 0, 0, TEXT_END);
}
- else if (button_status == MB_RELEASED)
+ else
{
int id = GADGET_ID_NONE;
int new_element_shift = element_shift;