react-native-resource-calendar 1.1.10 → 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 +11 -11
package/dist/index.js
CHANGED
|
@@ -1452,6 +1452,7 @@ var CalendarInner = (props) => {
|
|
|
1452
1452
|
if (!selectedEvent) {
|
|
1453
1453
|
setDraggedEventDraft(null);
|
|
1454
1454
|
setDragReady(false);
|
|
1455
|
+
hasSelectedEvent.value = false;
|
|
1455
1456
|
}
|
|
1456
1457
|
}, [selectedEvent, setSelectedEvent, setDraggedEventDraft]);
|
|
1457
1458
|
React19.useEffect(() => {
|
|
@@ -1486,6 +1487,7 @@ var CalendarInner = (props) => {
|
|
|
1486
1487
|
const startedX = Animated2.useSharedValue(0);
|
|
1487
1488
|
const startedY = Animated2.useSharedValue(0);
|
|
1488
1489
|
const touchY = Animated2.useSharedValue(0);
|
|
1490
|
+
const hasSelectedEvent = Animated2.useSharedValue(false);
|
|
1489
1491
|
const triggerHaptic = React19.useCallback(
|
|
1490
1492
|
async (style = "Light") => {
|
|
1491
1493
|
try {
|
|
@@ -1528,7 +1530,7 @@ var CalendarInner = (props) => {
|
|
|
1528
1530
|
const panGesture = reactNativeGestureHandler.Gesture.Pan().manualActivation(!isIOS).enabled(layout !== null).shouldCancelWhenOutside(false).onTouchesMove((_evt, stateManager) => {
|
|
1529
1531
|
"worklet";
|
|
1530
1532
|
if (isIOS) return;
|
|
1531
|
-
if (
|
|
1533
|
+
if (hasSelectedEvent.value)
|
|
1532
1534
|
stateManager.activate();
|
|
1533
1535
|
else stateManager.end();
|
|
1534
1536
|
}).onUpdate((evt) => {
|
|
@@ -1722,6 +1724,7 @@ var CalendarInner = (props) => {
|
|
|
1722
1724
|
startedX.value = selectedAppointmentStartedX;
|
|
1723
1725
|
lastHapticScrollY.value = scrollY.value;
|
|
1724
1726
|
eventHeight.value = initialHeight;
|
|
1727
|
+
hasSelectedEvent.value = true;
|
|
1725
1728
|
setSelectedEvent(event);
|
|
1726
1729
|
setDraggedEventDraft({
|
|
1727
1730
|
event,
|