Skip to main content

Bug Tracker

Side navigation

#7057 closed bug (invalid)

Opened September 21, 2010 07:29AM UTC

Closed September 22, 2010 08:52PM UTC

Last modified March 15, 2012 01:33PM UTC

Keyboard triggers unbinded events

Reported by: qualle Owned by:
Priority: Milestone: 1.4.2
Component: event Version: 1.4.2
Keywords: keyboard unbind bind trigger Cc:
Blocked by: Blocking:
Description

Hi,

i got a self-made scrollable where the elements rotates by clicking on the arrows left and right. This happens by doing

$('.scrollingHotSpotRight').click(animateRight);

$('.scrollingHotSpotLeft').click(animateLeft);

When the scrollable reaches an end (left or right) I unbind the click-event:

$('.scrollingHotSpotLeft').unbind('click',animateLeft); $('.scrollingHotSpotRight').unbind('click',animateRight);

This works. Now i implemented a short keyboard handler:

$(window).keyup(function (event) {

if (event.keyCode == 37) {

$('.scrollingHotSpotLeft').trigger('click');

} else if (event.keyCode == 39) {

('.scrollingHotSpotRight').trigger('click');

}

});

Now i can scroll over the borders of the scrollable in both directions by using the arrow keys. Did I missunderstand something or is this a bug?

If you want to view the complete code refer to http://www.renestaud.com/index.php?id=727&tx_pxfilegallery_pi3[mode]=detail&tx_pxfilegallery_pi3[imgStart]=0&cHash=21d09e3329 and watch the nice cars and ladys ;-)

Regards

qualle

Attachments (0)
Change History (2)

Changed September 21, 2010 09:15AM UTC by qualle comment:1

Ok i found the bug and it was my own fault - please delete...

Changed September 22, 2010 08:52PM UTC by snover comment:2

resolution: → invalid
status: newclosed

In future, please ask the forums before reporting a bug, as you will get better support this way. Thanks!