DescriptionCanvas2d: fix event.region being null on mouseleave/out events
In the current implementation of canvas hit region, the event.region always has
null in case of mouseleave/mouseout. Because the mouse cursor is already off
boundary of hit region when mouseleave/mouseout event happens.
To solve this problem, keeps the region in mouseenter/mouseover event and then
takes the value in mouseout/mouseleave event.
BUG=592992
Committed: https://crrev.com/282ff5518bc121cfe77a29ddd2b9a465b74daf37
Cr-Commit-Position: refs/heads/master@{#387915}
Patch Set 1 #Patch Set 2 : #
Total comments: 8
Patch Set 3 : #Patch Set 4 : #
Total comments: 2
Patch Set 5 : #
Total comments: 1
Patch Set 6 : #Patch Set 7 : #Messages
Total messages: 35 (10 generated)
|