Skip to content

feat: add double-tap functionality to collapse/expand the sidebar#25

Merged
fityannugroho merged 1 commit intomainfrom
feat/double-tap-sidebar
Sep 25, 2024
Merged

feat: add double-tap functionality to collapse/expand the sidebar#25
fityannugroho merged 1 commit intomainfrom
feat/double-tap-sidebar

Conversation

@fityannugroho
Copy link
Owner

PR Checklist

Please check if your PR fulfills the following requirements:

Put [x] to check

  • I have read the documentation.
  • I have read and followed the Contributing Guidelines.
  • I have included a pull request description of my changes.
  • I have included the necessary changes to the documentation.
  • I have added tests to cover my changes.

PR Type

What kind of change does this PR introduce?

Please check any kind of changes that applies to this PR using [x]

  • Bug fix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes

What is the current behavior?

Users on touch devices are unable to collapse or expand the sidebar because double-click functionality is not commonly supported on these devices.

What is the new behavior?

This PR adds the ability to collapse or expand the sidebar panel by double-clicking or double-tapping the sidebar toggle. It introduces a new hook called useDoubleTap, which triggers a callback function on a double-tap event.

This allows users to collapse or expand the sidebar panel by double-tapping on touch devices.

Other information

None

@fityannugroho fityannugroho added the enhancement New feature or request label Sep 25, 2024
@vercel
Copy link

vercel bot commented Sep 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
idn-area-map ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 25, 2024 3:01pm

@fityannugroho fityannugroho merged commit 5f21e9d into main Sep 25, 2024
@fityannugroho fityannugroho deleted the feat/double-tap-sidebar branch September 25, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant