I experience this behavior of scroll into view. Normally, I scroll elements into view with Actions or JavaScript like following:
Actions actions = new Actions(driver());
actions.moveToElement(element).build().perform();
or
js().executeScript("arguments[0].scrollIntoView();", element);
Both of them work fine when the elements are out of viewport. But sometimes, my elements are already inside the viewport, then when it reaches these commands, it actually scrolls these element out of view, and the test fails, because it is not clickable.
Has anyone experienced the same issue? Any solution?