MCPcopy Create free account
hub / github.com/Image-Py/imagepy / mouse_move

Method mouse_move

imagepy/tools/Standard/move_tol.py:22–26  ·  view source on GitHub ↗
(self, ips, x, y, btn, **key)

Source from the content-addressed store, hash-verified

20 pass
21
22 def mouse_move(self, ips, x, y, btn, **key):
23 if btn==None:return
24 x,y = key['canvas'].to_panel_coor(x,y)
25 key['canvas'].move(x-self.ox, y-self.oy)
26 self.ox, self.oy = x,y
27
28 def mouse_wheel(self, ips, x, y, d, **key):
29 if d>0:key['canvas'].zoomout(x,y)

Callers

nothing calls this directly

Calls 2

to_panel_coorMethod · 0.80
moveMethod · 0.80

Tested by

no test coverage detected