Skip to content

feat(keyboard): add support for custom speed parameter in keyboard navigation#8148

Merged
nolimits4web merged 1 commit intonolimits4web:masterfrom
michaltk:add-speed-keyboard
Jan 28, 2026
Merged

feat(keyboard): add support for custom speed parameter in keyboard navigation#8148
nolimits4web merged 1 commit intonolimits4web:masterfrom
michaltk:add-speed-keyboard

Conversation

@michaltk
Copy link
Copy Markdown
Contributor

Summary

This PR introduces a new speed parameter to the Swiper keyboard module, allowing users to customize the slide transition speed when navigating with keyboard controls (Arrow keys, PageUp/PageDown).

Details

  • Extended Swiper’s keyboard parameters to include an optional speed property.
  • When navigating with the keyboard, the slideNext()/slidePrev() functions now use the specified keyboard.speed value if provided; otherwise, they fallback to the global Swiper speed.
  • Updated the TypeScript type definitions (KeyboardOptions) to include the new parameter.

Motivation

Previously, keyboard navigation always used the default Swiper speed. This feature allows for more granular control, enabling smoother or faster transitions specifically when using keyboard controls.

Breaking changes

None. If keyboard.speed is not set, Swiper behavior remains unchanged.

@nolimits4web nolimits4web merged commit 7a4a0e5 into nolimits4web:master Jan 28, 2026
@nolimits4web
Copy link
Copy Markdown
Owner

Merged, 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

Successfully merging this pull request may close these issues.

2 participants