Edge browser not work with scrollTo method

Confirmed Issue #15534521 • Assigned to wptcomptri

Details

Author
ofir f.
Created
Jan 19, 2018
Privacy
This issue is public.
Found in
  • Microsoft Edge
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

jsfiddle demo

HTML

<button id="btn">Scroll UP</button>
<div class="wrapper" id="wrapper">
  <div class="inner"></div>
</div>

CSS

.wrapper {
  height: 400px;
  width: 400px;
  background: red;
  overflow: auto;
}

.inner{
   height: 1400px;
   width: 400px;
   background: green;
}

JS

document.getElementById('btn').addEventListener('click', goUp);

const wrapper = document.getElementById('wrapper');

function goUp() {
  wrapper.scrollTo(0,0);
}

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “Travis L.”

      Changed Assigned To to “wptcomptri”

      Changed Title from “Edge browser not work with scrollTo method” to “Edge browser not work with scrollTo method”

      Changed Status to “Confirmed”

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

    Sign in