react-native-resource-calendar 1.1.11 → 1.1.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +4 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1427,6 +1427,7 @@ var CalendarInner = (props) => {
|
|
|
1427
1427
|
if (!selectedEvent) {
|
|
1428
1428
|
setDraggedEventDraft(null);
|
|
1429
1429
|
setDragReady(false);
|
|
1430
|
+
hasSelectedEvent.value = false;
|
|
1430
1431
|
}
|
|
1431
1432
|
}, [selectedEvent, setSelectedEvent, setDraggedEventDraft]);
|
|
1432
1433
|
useEffect(() => {
|
|
@@ -1461,6 +1462,7 @@ var CalendarInner = (props) => {
|
|
|
1461
1462
|
const startedX = useSharedValue(0);
|
|
1462
1463
|
const startedY = useSharedValue(0);
|
|
1463
1464
|
const touchY = useSharedValue(0);
|
|
1465
|
+
const hasSelectedEvent = useSharedValue(false);
|
|
1464
1466
|
const triggerHaptic = useCallback(
|
|
1465
1467
|
async (style = "Light") => {
|
|
1466
1468
|
try {
|
|
@@ -1503,7 +1505,7 @@ var CalendarInner = (props) => {
|
|
|
1503
1505
|
const panGesture = Gesture.Pan().manualActivation(!isIOS).enabled(layout !== null).shouldCancelWhenOutside(false).onTouchesMove((_evt, stateManager) => {
|
|
1504
1506
|
"worklet";
|
|
1505
1507
|
if (isIOS) return;
|
|
1506
|
-
if (
|
|
1508
|
+
if (hasSelectedEvent.value)
|
|
1507
1509
|
stateManager.activate();
|
|
1508
1510
|
else stateManager.end();
|
|
1509
1511
|
}).onUpdate((evt) => {
|
|
@@ -1697,6 +1699,7 @@ var CalendarInner = (props) => {
|
|
|
1697
1699
|
startedX.value = selectedAppointmentStartedX;
|
|
1698
1700
|
lastHapticScrollY.value = scrollY.value;
|
|
1699
1701
|
eventHeight.value = initialHeight;
|
|
1702
|
+
hasSelectedEvent.value = true;
|
|
1700
1703
|
setSelectedEvent(event);
|
|
1701
1704
|
setDraggedEventDraft({
|
|
1702
1705
|
event,
|