Tickets

Issues

// TODO optimize by not check EVERY TIME! maybe half as often? //

  • Id: df51deea3863feed358676ecfacf0a74
  • Status: Closed
  • Initial commit: 7fc0fd2dccb027e1d73b169c6a51f09cc9f54e92
  • Creation date: 2015-02-01 01:41:03
  • Last changed: 2015-02-01 02:00:57
  • Created by: Laurent Defert
  • File: js/pixi.js
  • Last changed by: Laurent Defert
  • Tag:

	// TODO optimize by not check EVERY TIME! maybe half as often? //
	var rect = this.target.view.getBoundingClientRect();
	
	this.mouse.global.x = (event.clientX - rect.left) * (this.target.width / rect.width);
	this.mouse.global.y = (event.clientY - rect.top) * ( this.target.height / rect.height);
	

History