If the user wants to change the window center only (by moving the bar up/down), the window width is changing too because of minimal right/left mouse movement.
It might be better to set a minimum thershold for horizontal mouse movement (half of the bar width) that after this threshold, window width starts to change.
Description
Description