Browse Source

Store mouseover status for canvas

master
Sven Slootweg 9 years ago
parent
commit
e9dc655f63
  1. 8
      map_isometric.js

8
map_isometric.js

@ -13,6 +13,14 @@ if(RadiumEngine !== undefined)
this.canvas = canvas
this.context = canvas.getContext("2d");
$(this.canvas).bind('mouseenter', {'self': this}, function(event){
self.mouse_over = true;
});
$(this.canvas).bind('mouseleave', {'self': this}, function(event){
self.mouse_over = false;
});
$(this.canvas).bind('mousemove', {'self': this}, function(event){
self = event.data.self;

Loading…
Cancel
Save