Selected segment by select tool diseappears when zoom +- or pan

Issue #80 closed
Michel Durand created an issue
  • Select a track segment (with track edit mode activated or not, it goes wrong in both cases)
  • pan or zoom in/out => selected segment disappears

This is a problem when accurate selection is needed : in this case the following sequence is used : zoom in to select first point, zoom out and/or pan, zoom in to select 2nd point.

Segment was not disappearing in QMS v1.4.0.

QMS v1.5.1p1627Qt5.5 Windows 7 64bits

Comments (7)

  1. kiozen

    I do not see the problem. I select the first point. Moving the mouse along the track gives me the green line. Now I zoom/move the map. Moving the mouse close to the track again, gives me the green line. I select the second point. Now I have done my selection and the screen option appears.

    If I do not select an option and start to zoom/move again, my selection is reset. It is reset because the only reasonable step is pressing a button. If I don't do that it is assumed that the selection is of no interest anymore.

  2. kiozen

    This is linked to Issue #68. Moving the map by keys did not reset the selection whereas moving the map by mouse drag-n-drop did. The behavior was unified to the intended one, resetting the selection.

  3. Christian Eichler

    My current build (rev 1657) does not do the selection correctly:

    • Start selection (set the first point)
    • Zoom in (this is important, it works flawless without this step)
    • Set the second point, after that - when hovering the track - you still get that pink dot:

    select1.jpg

    • Click anywhere on the track, a button-only "bubble" appears:

    select2.jpg

  4. Christian Eichler

    I just pushed a changeset fixing the error I described above. Consider this fixed if my description matches your problem.

  5. kiozen

    I finally found out what Michael wanted to tell us. :)

    And the problem does not happen when a range is selected but in the process of selecting a range.

    And range selection behaves different to the range selection in track edit mode. The green line does not disappear.

    But apart from this, the selection gets indeed broken by a move or zoom. Fixed it.

    see commit a8d91f6ae05db069ef883b3aeb08ab4a37d862c9

  6. Michel Durand reporter

    Sorry not to be very clear and not covering all of the use cases. Below is how it should behave (according to what I know, correct me if I am wrong) :

    • In track edit mode:
    1. enable range selection mode
    2. left click on the desired beginning point
    3. zoom out with mouse wheel or keyboard
    4. pan using keyboard arrows
    5. zoom in with mouse wheel or keyboard
    6. left click on the desired ending point => a bubble with 2 buttons appears

    Problem with v1.5.1p1627Qt5.5 is at step 3) or 4) : green selected area disappears as soon as zoom or pan is executed -> fixed by Oliver

    • In track display mode:
    1. enable range selection mode
    2. left click on the desired beginning point
    3. zoom out with mouse wheel or keyboard
    4. pan using keyboard arrows or drag-n-drop with left mouse button
    5. zoom in with mouse wheel or keyboard
    6. left click on the desired ending point => a bubble with 4 buttons and statistics appears

    Problem with v1.5.1p1627Qt5.5 is at step 6) : no bubble appears -> fixed by Christian

    I will test this in the next release.

  7. Log in to comment