I have a zoom in and out function, and am adding a global gesture "Dragging" to allow the user to pan the camera around while zoomed in. Global Drag Start Code: drag_room_x = event_data[? "posX"]; drag_room_y = event_data[? "posY"]; Global Dragging Code: var _x = drag_room_x - event_data[? "rawposX"]; var _y = drag_room_y - event_data[? "rawposY"]; camera_set_view_pos(cam,_x,_y); I'm trying to clamp the dragging of the camera_set_view_pos to be within the room only, so they don't see outside the room, how do I accomplish this? P.S (Low priority) - the dragging is a bit choppy, it will "jump back" a bit to where the last touch position was when dragging starts. Thank you!!