AdvancedPhotonSource / GSAS-II

Home for GSAS-II: crystallographic and diffraction-based structural characterization of materials
Other
27 stars 9 forks source link

dragging tickmark problems #46

Open briantoby opened 2 months ago

briantoby commented 2 months ago

Dragging tickmarks can have two problems that do not happen most of the time and might be MacOS only.

1) dragging the tickmarks causes Python to crash (ouch!)

2) dragging the tickmarks seems to work, but when the mouse is released the new position is not saved.

Restarting GSAS-II seems to make the problem go away for a while

briantoby commented 3 weeks ago

Perhaps a CallAfter will fix problem 1. above.

Changed the one direct call to PlotPatterns in OnRelease to a CallAfter in https://github.com/AdvancedPhotonSource/GSAS-II/commit/d0c835979ffac74c351806e18e161f3332fc9807

While at it, prevent accidental dragging of difference curve in Peak Lists.