#403 ✓resolved
Nick Stakenburg

2x Faster Event#pointer[X|Y]

Reported by Nick Stakenburg | October 23rd, 2008 @ 09:15 PM | in 1.7

Event#pointerX and pointerY could be twice as fast by removing the overhead caused by getting 2 coordinates when only 1 is required.

// using pointer(event)[x|y] causes overhead
  pointerX: function(event) { return Event.pointer(event).x },
  pointerY: function(event) { return Event.pointer(event).y },

The attached patch removes this overhead by defining Event#pointerX and pointerY separately.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

The Prototype JavaScript library.

Shared Ticket Bins


Referenced by