subtirelumihail / react-fullpage

A react implementation of fullpage.js
304 stars 105 forks source link

arrowNavigation breaks input fields #50

Closed Xilver closed 6 years ago

Xilver commented 6 years ago

When setting arrowNavigation to true, you can no longer navigate in text input fields using arrow keys, and more importantly, you can not type spaces.

This is the offending code in SectionsContainer: if([32, 37, 38, 39, 40].indexOf(e.keyCode) > -1) { e.preventDefault(); // Prevent unwanted scrolling on Firefox }

Imagixel commented 6 years ago

same issue here

m-muhsin commented 6 years ago

This is fixed