In motion(), you're calling slideButton() when $isDragging is TRUE. What you want to do is call that function when you've stopped dragging the button. I haven't looked too closely at your code but suspect moving the call to slideButton() from motion() to buttonRelease() might fix the problem (which possibly means you'll no longer need $isDragging or buttonPress() and its associated bind()).
-- Ken
In reply to Re: How to make a Tk::Button move/slide within a Tk::Table
by kcott
in thread How to make a Tk::Button move/slide within a Tk::Table
by bcarroll
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |