Mouseup on doc should trigger when the button is pressed inside the window and released outside it

Confirmed Issue #15219156 • Assigned to travil

Details

Author
Francesco C.
Created
Dec 25, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

In the following scenario (codepen)

document.addEventListener('mousedown', function() {
  log("mousedown");
});

document.addEventListener('mouseup', function() {
  log("mouseup");
});

function log(msg) {
  var el = document.createElement("div");
  el.innerHTML = msg;
  document.body.appendChild(el);
}

When the mouse is pressed inside the window and then released outside of it, I think the mouseup event should trigger. It works like that in chrome and firefox, and makes it possible to handle drag and drops properly in such cases.

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “James M.”

      Changed Assigned To to “travil”

      Changed Status to “Confirmed”

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

    Sign in