Permalink
Browse files

Add onMouseEnter and onMouseLeave event handlers

Fixes #543
  • Loading branch information...
nvh committed Jan 16, 2018
1 parent 42cc2a3 commit ca62c903e1232241ee3d96315ab9a95fbf57560e
Showing with 4 additions and 0 deletions.
  1. +2 −0 framer/Events.coffee
  2. +2 −0 framer/Layer.coffee
View
@@ -11,6 +11,8 @@ Events.MouseUp = "mouseup"
Events.MouseDown = "mousedown"
Events.MouseOver = "mouseover"
Events.MouseOut = "mouseout"
Events.MouseEnter = "mouseenter"
Events.MouseLeave = "mouseleave"
Events.MouseMove = "mousemove"
Events.MouseWheel = "mousewheel"
Events.DoubleClick = "dblclick"
View
@@ -1529,6 +1529,8 @@ class exports.Layer extends BaseClass
onMouseDown: (cb) -> @on(Events.MouseDown, cb)
onMouseOver: (cb) -> @on(Events.MouseOver, cb)
onMouseOut: (cb) -> @on(Events.MouseOut, cb)
onMouseEnter: (cb) -> @on(Events.MouseEnter, cb)
onMouseLeave: (cb) -> @on(Events.MouseLeave, cb)
onMouseMove: (cb) -> @on(Events.MouseMove, cb)
onMouseWheel: (cb) -> @on(Events.MouseWheel, cb)

0 comments on commit ca62c90

Please sign in to comment.