oolib 2.101.6 → 2.101.7
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.
|
@@ -51,8 +51,9 @@ var SliderShell = function (_a) {
|
|
|
51
51
|
});
|
|
52
52
|
},
|
|
53
53
|
}).handleDragStart;
|
|
54
|
-
return (react_1.default.createElement(styled_1.StyledFlexWrapper, { ref: wrapperRef
|
|
55
|
-
value.map(function (v, idx) { return (react_1.default.createElement(styled_1.StyledFlexItem, { key: (v === null || v === void 0 ? void 0 : v.publicUrl) || idx, marginLeft: idx === 0 && activeIdx * -100 + "%" },
|
|
54
|
+
return (react_1.default.createElement(styled_1.StyledFlexWrapper, { ref: wrapperRef },
|
|
55
|
+
value.map(function (v, idx) { return (react_1.default.createElement(styled_1.StyledFlexItem, { key: (v === null || v === void 0 ? void 0 : v.publicUrl) || idx, marginLeft: idx === 0 && activeIdx * -100 + "%" },
|
|
56
|
+
react_1.default.createElement("div", { onTouchStart: handleDragStart, onMouseDown: handleDragStart }, render(v, idx) /* explicitly called, cuz we want an error to throw if render prop aint passed thru */))); }),
|
|
56
57
|
!isLoading && value.length > 1 && !imageUnderEdit && react_1.default.createElement(react_1.Fragment, null,
|
|
57
58
|
react_1.default.createElement(styled_1.StyledCaretLeft, { onClick: function () {
|
|
58
59
|
return setActiveIdx(activeIdx > 0 ? activeIdx - 1 : value.length - 1);
|