jetperch / pyjoulescope_ui

Joulescope graphical user interface
https://www.joulescope.com
Apache License 2.0
87 stars 26 forks source link

Waveform widget dual markers disappear when dragged off edge #286

Closed mliberty1 closed 2 months ago

mliberty1 commented 3 months ago

Joulescope model

JS220

UI version

1.1.9

What OS are you seeing the problem on?

Windows 11

What happened?

In the Waveform widget when sample streaming is paused or with a file, if I drag x-axis dual markers using their time bar all the way to the left, they disappear. I can also use CTRL click to get the same behavior if I click just to the right of the left-hand marker.

dual_markers

What was expected?

The marker should never extend beyond the left-hand extents, just like when dragging one of the individual markers.

How to reproduce?

  1. Select View → Oscilloscope and pause the sample streaming
  2. Zoom all the way out
  3. Add x-axis dual markers
  4. Use the top bar to drag the dual markers all the way to the left. Watch them disappear.

Extra information

This behavior exists to remove dual markers from streaming sample data as they go out of time scope. When paused or with a file, they are supposed to be bounded to the extents. The code that performs this bounding needs some work.