Skip to content

Commit

Permalink
Merge pull request #97 from labscript-suite/dragdroptab-fix
Browse files Browse the repository at this point in the history
Fix issue with dragdroptab - convert float coords to int
  • Loading branch information
dihm committed Apr 13, 2023
2 parents 29ac288 + 835bbe8 commit 87de9cd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion labscript_utils/qtwidgets/dragdroptab.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,9 @@ def updateCurrentTime(self, current_time):
if dy * (target_pos_y - new_pos_y) < 0:
new_pos_y = target_pos_y

self.limbo_position = QPoint(new_pos_x, new_pos_y)
self.limbo_position = QPoint(
int(round(new_pos_x)), int(round(new_pos_y))
)
else:
self.limbo.animation_over()
self.limbo = None
Expand Down

0 comments on commit 87de9cd

Please sign in to comment.