Skip to content
Snippets Groups Projects
Commit 0f0c92e3 authored by mcmlxxix's avatar mcmlxxix
Browse files

added frame.pushxy()/popxy()

parent a85f2e38
No related branches found
No related tags found
No related merge requests found
......@@ -297,7 +297,8 @@ function Frame(x,y,width,height,attr,frame) {
}
var position = {
cursor:{x:0,y:0},
offset:{x:0,y:0}
offset:{x:0,y:0},
stored:{x:0,y:0}
}
/* protected properties */
......@@ -795,6 +796,14 @@ function Frame(x,y,width,height,attr,frame) {
}
return xy;
}
this.pushxy = function() {
position.stored.x = position.cursor.x;
position.stored.y = position.cursor.y;
}
this.popxy = function() {
position.cursor.x = position.stored.x;
position.cursor.y = position.stored.y;
}
/* private functions */
function getTop(canvas,x,y) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment