Give help. Get help.

  • # December 27, 2012 at 1:07 am

    Hello Everyone,

    There seems to be a few glitches with some jquery I’m working with. I’ve attempted a fix…having no luck. Hopefully the experts here can provide some assistance. Thank you.

    Multiple keydown events are fired if a user holds down the key for an extended period of time.

    **Attempted Fix**
    Changed keydown to keyup _Failed to solve issue and affected desired output_

    Fire keydown event only once if the user holds down the key…preventing continuous scrolling


    # December 27, 2012 at 3:19 pm

    Something like this should work:

    You’re allowed to use the up/down arrows once by setting a variable to true on keyup. Also, the e.preventDefault() prevents the browser window from scrolling up/down.

    # December 30, 2012 at 2:44 pm

    [Check this out]( I combined both scripts. I think that should work for you.

    # December 30, 2012 at 3:53 pm

    I couldn’t simulate the issue you were having. But I have a hunch what was causing it. I updated the code, [try this]( Does that fix it?

    # December 31, 2012 at 8:57 pm

    I actually just put the two scripts together, and had no issues. Haha.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.