Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove space scroll #16

Open
br0k3n opened this issue Nov 13, 2012 · 4 comments
Open

Remove space scroll #16

br0k3n opened this issue Nov 13, 2012 · 4 comments

Comments

@br0k3n
Copy link

br0k3n commented Nov 13, 2012

Hi,

I love ScrollDeck, but I've a little question.

How can I avoid the scroll down when I hit the space key?

Thanks a lot :)

@gunaifitm85
Copy link

yes.. i have the same question... any answer ? love the scrolldeck plugin..thx john polacek

@gunaifitm85
Copy link

i found fix for my case, actually i have a textarea inside the slide, the problem is when i hit space while focusing in the textarea the page scrolling to the next slide, now i edit the js file in line127

else if ((e.keyCode == 39 || e.keyCode == 32 || e.keyCode == 40) && currIndex != slides.length-1) {
                    scrollToSlide(getNextScrollpoint());
                }

and remove the || e.keyCode == 32 line. it did works for me when i'm focus or writing in the textarea.

@johnpolacek
Copy link
Owner

Yes, that's what you can do. Thanks!

@Dimosthenis
Copy link

Hello, I haven't tried it yet but I need one more tip similar to this one.

First I need to disable scrolling unless an event occurs (like a click) on a button.
(Scrollbars are gone with the html {overflow:hidden}), the spacebar and arrow keys solution is written from gunaifitm85 above me (?).

Cause of that I need to have specific sized div tags so that every .slide div takes up 100% of the screen without the user being able to jump to the next one unless that event (as mentioned above).

Could you please point me at some direction?
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants