[Webkit-unassigned] [Bug 126711] [GTK] Range input has problems with mouseout events

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 9 12:20:42 PST 2014


https://bugs.webkit.org/show_bug.cgi?id=126711





--- Comment #1 from Xabier Rodríguez Calvar <calvaris at igalia.com>  2014-01-09 12:18:25 PST ---
(In reply to comment #0)

It looks like I pasted too much code, the good one is:

<html>
  <body>
    <div id="outer" style="height: 300px; width=300px; background-color: green;">
      <input id="inner" type="range"></input>
    </div>
    <p id="demo">Run event to see this text changed.</p>
    <p id="debug">debug.</p>
    <div>
      <pre>
        <script>
var i = 0;
function myCallback(event) {
    inner = document.getElementById("inner");
    debug = document.getElementById("debug");
    debug.innerHTML = "event target id: " + event.relatedTarget.id + ", inner id: " + inner.id;
    if (event.relatedTarget != inner) {
        demo = document.getElementById("demo");
        demo.innerHTML = ++i;
    }
}

outer = document.getElementById("outer");
outer.addEventListener('mouseout', myCallback, false);
        </script>
      </pre>
    </div>
  </body>
</html>

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list