moveto always scrolls the center of element into view instead of the specified offset

Fixed, not yet flighted Issue #7197902

Details

Created
Apr 13, 2016
Privacy
This issue is public.
Found in build #
14.14304
Reports
Reported by 0 people

Sign in to watch or report this issue.

Steps to reproduce

The moveto command always scrolls the center point in view. Try replacing the 1400,1400 with 0,0 in the repro sample and it will also scroll the center.

In Chrome, it seems to ignore the offset and always move to 0,0.

            Driver.Manage().Window.Size = new Size(500, 500);
            Driver.ExecuteScript(“document.body.insertAdjacentHTML('beforeend’, '<div style="background-color:red; width: 1500; height: 1500” > Foobar </div>’)");
            Actions action = new Actions(Driver);
            action.MoveToElement(Driver.FindElementByTagName(“div”), 1400, 1400);
            action.Perform();

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Navin A.”

      Changed Status to “Confirmed”

      Changed Steps to Reproduce

      Changed Title from “moveto always goes to the element center instead of the specified offset” to “moveto always scrolls the center of element into view instead of the specified offset”

      Changed Assigned To from “Navin A.” to “Ben B.”

      Changed Status from “Confirmed” to “Fixed”

      Changed Status from “Fixed” to “Fixed, not yet flighted”

    You need to sign in to your Microsoft account to add a comment.

    Sign in