[Webkit-unassigned] [Bug 63463] AX: Support HTML5 Canvas AX with hit regions
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu May 29 08:24:56 PDT 2014
https://bugs.webkit.org/show_bug.cgi?id=63463
--- Comment #6 from Charles Pritchard <chuck at jumis.com> 2014-05-29 08:25:19 PST ---
Chrome (Blink):
https://code.google.com/p/chromium/issues/detail?id=328961
Code review/patch (Blink):
https://codereview.chromium.org/287163007/
Firefox (Gecko):
https://bugzilla.mozilla.org/show_bug.cgi?id=966591
https://bugzilla.mozilla.org/show_bug.cgi?id=979692
Please note the following code sample may be outdated. Will check back in a few weeks to see if Blink and Gecko have converged and have an example using a DOM element.
Code sample (from Firefox):
<canvas id="input"></canvas>
var ctx = input.getContext("2d");
ctx.beginPath();
ctx.rect(20, 20, 100, 75);
ctx.fill();
ctx.addHitRegion({id: "a"});
var regionId = "";
input.addEventListener('mousedown', function(evt){
regionId = evt.region;
});
--
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