if(iszoom, if(wheeldelta_touchscale GT 0, if(startzoom, set(startzoom,false); copy(start_wheeldelta_touchscale, wheeldelta_touchscale); copy(start_imagescale, layer[image].scale); ); div(tmp, wheeldelta_touchscale, start_wheeldelta_touchscale); mul(layer[image].scale, start_imagescale, tmp); , mul(sit,get(wheeldelta),0.05); mul(sit,layer[image].scale); add(layer[image].scale,sit); ); ); copy(mstartx, mouse.x); copy(mstarty, mouse.y); copy(lstartx, x); copy(lstarty, y); asyncloop(pressed, calc(x, lstartx + mouse.x - mstartx); calc(y, lstarty + mouse.y - mstarty); );