Mercurial > urweb
comparison lib/js/urweb.js @ 2228:25c94de06e3c
New mouse events oncontextmenu, onmouseenter, and onmouseleave.
author | Ziv Scully <ziv@mit.edu> |
---|---|
date | Tue, 07 Apr 2015 14:18:53 -0400 |
parents | e8863d9f8c59 |
children | 14c45a0b6362 |
comparison
equal
deleted
inserted
replaced
2227:adb49db02af4 | 2228:25c94de06e3c |
---|---|
535 | 535 |
536 function uw_onClick(f) { | 536 function uw_onClick(f) { |
537 uw_handler("onclick", f); | 537 uw_handler("onclick", f); |
538 } | 538 } |
539 | 539 |
540 function uw_onContextmenu(f) { | |
541 uw_handler("oncontextmenu", f); | |
542 } | |
543 | |
540 function uw_onDblclick(f) { | 544 function uw_onDblclick(f) { |
541 uw_handler("ondblclick", f); | 545 uw_handler("ondblclick", f); |
542 } | 546 } |
543 | 547 |
544 function uw_onMousedown(f) { | 548 function uw_onMousedown(f) { |
545 uw_handler("onmousedown", f); | 549 uw_handler("onmousedown", f); |
550 } | |
551 | |
552 function uw_onMouseenter(f) { | |
553 uw_handler("onmouseenter", f); | |
554 } | |
555 | |
556 function uw_onMouseleave(f) { | |
557 uw_handler("onmouseleave", f); | |
546 } | 558 } |
547 | 559 |
548 function uw_onMousemove(f) { | 560 function uw_onMousemove(f) { |
549 uw_handler("onmousemove", f); | 561 uw_handler("onmousemove", f); |
550 } | 562 } |