Make test scale work?
This commit is contained in:
parent
a797bff7a1
commit
e25cc7ba38
|
@ -60,14 +60,14 @@ export component MainTab inherits Rectangle {
|
||||||
scale: test_scale;
|
scale: test_scale;
|
||||||
|
|
||||||
TouchArea {
|
TouchArea {
|
||||||
x: (parent.img_x + self.lines_crossed_x())*1px;
|
x: ((parent.img_x + self.lines_crossed_x())*1px)*test_scale;
|
||||||
y: (parent.img_y + self.lines_crossed_y())*1px;
|
y: ((parent.img_y + self.lines_crossed_y())*1px)*test_scale;
|
||||||
width: (parent.img.width + self.lines_crossed_width())*1px;
|
width: ((parent.img.width + self.lines_crossed_width())*1px)*test_scale;
|
||||||
height: (parent.img.height + self.lines_crossed_height())*1px;
|
height: ((parent.img.height + self.lines_crossed_height())*1px)*test_scale;
|
||||||
mouse-cursor: grab;
|
mouse-cursor: grab;
|
||||||
moved => {
|
moved => {
|
||||||
self.mouse-cursor = MouseCursor.grabbing;
|
self.mouse-cursor = MouseCursor.grabbing;
|
||||||
root.move_vram_image(i, (self.mouse-x - self.pressed-x)/1px, (self.mouse-y - self.pressed-y)/1px);
|
root.move_vram_image(i, ((self.mouse-x - self.pressed-x)/test_scale)/1px, ((self.mouse-y - self.pressed-y)/test_scale)/1px);
|
||||||
cur_sel_x.text = parent.img_x;
|
cur_sel_x.text = parent.img_x;
|
||||||
cur_sel_y.text = parent.img_y;
|
cur_sel_y.text = parent.img_y;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue