Bug 1100

Summary: Wishlist: PV should prevent the user from zooming into empty space
Product: PulseView Reporter: Soeren Apel <soeren>
Component: Data displayAssignee: Nobody <nobody>
Status: CONFIRMED ---    
Severity: normal CC: fenugrec, Gerhard.Sittig, uwe
Priority: Normal    
Version: unreleased development snapshot   
Target Milestone: ---   
Hardware: All   
OS: All   

Description Soeren Apel 2017-12-29 01:23:04 CET
When zoomed out far, zooming in can lead the user to zooming into empty space. This should be prevented so that the trace always remains in the view.
Comment 1 Gerhard Sittig 2018-02-04 12:49:49 CET
When you implement the limitation, please make sure to not remove the option 
of zooming in and leaving some room "to the left of absolute 0".  Labels for 
decoder annotation rows usually "cover" part of the data, which is why I find 
myself constantly moving the trace a little to the right.

In other words:  It's OK to enforce that _some_ of the trace is seen, and the 
data never completely goes off screen.  But enforcing absence of any space, or 
the presence of only data at either end of the trace, might be undesirable.
Comment 2 fenugrec 2018-04-27 17:26:21 CEST
It's also helpful when setting markers (to extract a selected range) to see at least some empty space, to be certain that the beginning or end is included in the range.
Comment 3 Uwe Hermann 2018-04-28 16:11:43 CEST
I personally like some space to be available as well, I move the traces to various sides/edges of the window intentionally sometimes (for various reasons). Always enforcing that there can't be empty space at top/bottom/left/right of the actual traces would be a bit limiting, IHMO. I quite like the current setup, personally.
Comment 4 fenugrec 2018-04-28 17:05:02 CEST
What about just enforcing that the beginning and end of the capture always stay left / right of the middle the screen ? When zooming in left of the beginning, no matter how much, the beginning will at worst be in the middle of the screen. Same thing on the other side.