WpfHexEditorControl icon indicating copy to clipboard operation
WpfHexEditorControl copied to clipboard

Multi-Select Bug

Open timvz opened this issue 3 years ago • 1 comments

When I open the HexEditor control for the first time, there is a limit on how many rows I can mutli-select either by a mouse drag or with shift-clicks. The limit appears to be about 22 rows in the provided WpfHexEditor.Sample project. Note: you must have more than 22 rows visible on the screen to observe this. If I have less than 22 visible, there's no issue using shift-click to multi select. Click and drag also works with less than 22 lines visible, but scrolling stops whenever the mouse leaves the window.

Also, after I change the number of bytes per line the problem disappears.

To Reproduce Steps to reproduce the behavior:

  1. Start up the WpfHexEditor.Sample project.
  2. Open a binary file that provides more than 22 lines of hex at 16 bytes per line.
  3. Adjust the window size to show more than 22 lines of hex.
  4. Click at byte zero and drag downwards.

Expected behavior Would expect the selection range to continue until I stop dragging the mouse. However, it stops at the end of line 22 even though I continue to drag my mouse downwards.

Desktop (please complete the following information):

  • OS: Windows 11 or 10
  • Browser: N/A, but I use have Edge and Chrome installed.
  • Version: Windows 11 Home 22H2

Smartphone (please complete the following information):

  • Device: N/A

Screenshot

timvz avatar Dec 16 '22 11:12 timvz

Hi timvz

I will check this. First time this bug as declared.

Thank you

abbaye avatar Dec 25 '22 22:12 abbaye