- Optimized mobile image loading (180px vs 200px desktop) - Fixed Install App navigation not working on desktop - Fixed replaceChild null error in hero rendering - Added PWA icon (512x512) - Fixed back button navigation issues - Added mobile bottom padding for nav bar - Moved Get App FAB higher to avoid nav overlap - Removed unnecessary pushState from video navigation - Made Search/MyList tabs not scroll to top on mobile - Removed duplicate Android TV section from download page
34 lines
752 B
JavaScript
34 lines
752 B
JavaScript
import { Haptics, ImpactStyle } from '../js/capacitor-mock.js';
|
|
|
|
/**
|
|
* Trigger a light haptic feedback for small interactions
|
|
*/
|
|
export const hapticLight = async () => {
|
|
try {
|
|
await Haptics.impact({ style: ImpactStyle.Light });
|
|
} catch (e) {
|
|
// Fail silently if not on native
|
|
}
|
|
};
|
|
|
|
/**
|
|
* Trigger a medium haptic feedback for major interactions
|
|
*/
|
|
export const hapticMedium = async () => {
|
|
try {
|
|
await Haptics.impact({ style: ImpactStyle.Medium });
|
|
} catch (e) {
|
|
// Fail silently
|
|
}
|
|
};
|
|
|
|
/**
|
|
* Trigger a success haptic feedback
|
|
*/
|
|
export const hapticSuccess = async () => {
|
|
try {
|
|
await Haptics.notification({ type: 'SUCCESS' });
|
|
} catch (e) {
|
|
// Fail silently
|
|
}
|
|
};
|