Skip to content

Conversation

@rjvim
Copy link
Owner

@rjvim rjvim commented Apr 19, 2025

This commit implements an opt-in approach for the 5-tap feature in MetaScan:

  • Added new data-enable-tap-feature attribute that must be explicitly set to "true" to enable the tap feature
  • Modified tap detector to check for the new attribute before activating
  • Updated MetaScanOptions interface to include enableTapFeature option
  • Changed tap behavior to only toggle the "M" icon visibility without opening the panel
  • Added proper state management with stateManager.setEnableDisable()
  • Created comprehensive test file (tap-feature-test.html) with all test cases
  • Updated README with documentation for the new opt-in functionality
  • Maintained backward compatibility with existing features

The tap feature now works as follows:

  • By default, it's disabled unless explicitly enabled
  • When enabled, 5 taps will toggle the "M" icon visibility
  • Existing enableOrDisable() API continues to work as before

This commit implements an opt-in approach for the 5-tap feature in MetaScan:

- Added new `data-enable-tap-feature` attribute that must be explicitly set to "true" to enable the tap feature
- Modified tap detector to check for the new attribute before activating
- Updated MetaScanOptions interface to include enableTapFeature option
- Changed tap behavior to only toggle the "M" icon visibility without opening the panel
- Added proper state management with stateManager.setEnableDisable()
- Created comprehensive test file (tap-feature-test.html) with all test cases
- Updated README with documentation for the new opt-in functionality
- Maintained backward compatibility with existing features

The tap feature now works as follows:
- By default, it's disabled unless explicitly enabled
- When enabled, 5 taps will toggle the "M" icon visibility
- Existing enableOrDisable() API continues to work as before
@rjvim rjvim added the release Create a release when this pr is merged label Apr 19, 2025
@rjvim rjvim merged commit cc07a7e into main Apr 19, 2025
2 checks passed
@rjvim rjvim deleted the 5tap-opt-in-feature branch April 19, 2025 10:22
@github-actions
Copy link

🚀 PR was released in v0.14.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label Apr 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release Create a release when this pr is merged released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants