Moving `window` inside a `scrollview` container results in display offset.

I have a scrollview container that is part of a more complex layout. There is a fixed height view above the scrollview. The scrollview holds a number of windows, using the container param of window.

This method works great and confines the windows to the scrollview, and places them in the correct position. However, moving the windows results in a display offset equal to the height of the view above the scrollview. This offset becomes bigger if I scroll the scrollview down (or right).

Here’s a snippet to show what I’m talking about:
https://snippet.webix.com/707uw9l0

How can I get Webix to compensate for this offset when moving windows while there’s a view above (or to the right) of the scrollview or when the scrollview itself is scrolled?

@mcmurphy510
a bit hackish, but works
https://snippet.webix.com/b2g8urfu

@intregal , This is awesome. Thanks.

Can you explain a bit about what you’re doing in _$dragCreate and move_setter?

Thanks.

https://docs.webix.com/desktop__custom_component.html
move_setter handles move property in config.
in overridden move_setter we replace existing $dragCreate with own implementation.

to understand what is done in _$dragCreate I recommend to check DragControl and Movable mixins’ sources

btw: in last version (I use 6.4) the logic is improved a little, but general logic is the same.

@intregal . Thanks for the explanation.