pen event test

HTML

Touch the area to see what we can detect

<div id="log"></div>

CSS

hh

JavaScript

var log = function(msg) {
    $("<div>").text(msg).appendTo($("#log"));
};

$(function() {
    $(document).on("contextmenu", false);
    $(document).on("MozTouchDown MozTouchUp mousedown mouseup mouseover mouseout mouseenter mouseleave", function(ev) {
        
        log(ev.type + " " + ev.originalEvent.mozInputSource + " " + ev.originalEvent.streamId + " " + ev.originalEvent.button + " " + ev.originalEvent.which + " " + ev.originalEvent.mozPressure);
    });
});