Bug Tracker

Opened 13 years ago

Closed 13 years ago

Last modified 11 years ago

#7057 closed bug (invalid)

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

Change History (2)

comment:1 Changed 13 years ago by qualle

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

comment:2 Changed 13 years ago by snover

Resolution: invalid
Status: newclosed

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

Note: See TracTickets for help on using tickets.