potlatch2 can't exit from dragging toolbox #3410
Comments
Author: FK270673 Today, it happened again. After merging two ways, I was not able to exit the dragging toolbox with the merge button. |
Author: FK270673 The arrow keys are the only keys which obviously react. |
Author: stevage I can't reproduce this. Any more information? Is there a particular sequence of mouse/keyboard actions that always causes it? |
Author: FK270673 Clicking merge ways (toolbox) -> loading data forever -> can't exit dragging toolbox |
Author: FK270673 Now I have identified and solved the problem It happens exactly when Potlatch2 reaches the local memory limit which was limited to 100kB on my computer. After changing global settings, Potlatch2 was working again. |
Author: stevage So in terms of this being a blocker, does that represent a solution or a just a per-user workaround? |
Author: FK270673 Replying to [comment:6 stevage]:
I would consider it as personal workaround by an experienced user. However, it might distract mappers from using Potlatch2, so there should be a user-friendly solution that enables them to exit the toolbox EASILY and everytime (something like "press Escape or X or whatever to exit the toolbox") and to save their work without workarounds. Furthermore, it would be better if a popup informs about memory exceed rather than doing strange things that are hard to understand for dumb users. |
Author: Richard I genuinely don't think the local memory limit has much to do with it. Potlatch uses very little "local storage" and it's mostly irrelevant to the toolbox. If it does fix it then it's more by accident than design. I can (just about) reproduce this by doing lots of panning around while it's loading a whole bunch of data. This strongly suggests that the issue is a mouse-up event not being passed through to the Toolbox. Probably the most feasible solution is to make the Toolbox drag listen to mouse-up events on the Stage, rather than exclusively on the toolbox. For tidiness, we should therefore set up the listener at the start of each drag and remove it at the end, rather than reacting on every single mouse-up that might ever happen in P2. In other words: Remove super.titleBar.addEventListener(MouseEvent.MOUSE_UP,handleUp); from createChildren in Toolbox.mxmlAdd stage.addEventListener(MouseEvent.MOUSE_UP,handleUp) to the handleDown methodAdd stage.removeEventListener(MouseEvent.MOUSE_UP,handleUp) to the handleUp methodThis'll need to be tested (I presume stage is accessible from any mxml component?) but looks likely to me. |
Author: Richard Committed in r25533, let us know if it reoccurs (on a site that's running r25533+, of course :) ). |
Reporter: FK270673
[Submitted to the original trac issue database at 3.03am, Wednesday, 22nd December 2010]
Unfortunately I am sometimes stuck in dragging the small toolbox. After having clicked one of the buttons, the toolbox follows my mouse, but it is impossible to leave the dragging toolbox.
The text was updated successfully, but these errors were encountered: