comparison lib/js/urweb.js @ 1791:2f8b8952fe27

Add more global mouse event hooks
author Adam Chlipala <adam@chlipala.net>
date Mon, 23 Jul 2012 08:38:39 -0400
parents 56b8efff64e7
children 3d823d8424cc
comparison
equal deleted inserted replaced
1790:56b8efff64e7 1791:2f8b8952fe27
502 502
503 function uw_onMousedown(f) { 503 function uw_onMousedown(f) {
504 uw_handler("onmousedown", f); 504 uw_handler("onmousedown", f);
505 } 505 }
506 506
507 function uw_onMousemove(f) {
508 uw_handler("onmousemove", f);
509 }
510
511 function uw_onMouseout(f) {
512 uw_handler("onmouseout", f);
513 }
514
515 function uw_onMouseover(f) {
516 uw_handler("onmouseover", f);
517 }
518
507 function uw_onMouseup(f) { 519 function uw_onMouseup(f) {
508 uw_handler("onmouseup", f); 520 uw_handler("onmouseup", f);
509 } 521 }
510 522
511 function uw_keyHandler(name, f) { 523 function uw_keyHandler(name, f) {