pixuireactcomponents 1.5.9 → 1.5.10

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixuireactcomponents",
3
- "version": "1.5.9",
3
+ "version": "1.5.10",
4
4
  "description": "pixui react components",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -169,14 +169,6 @@ export var Slider = function (props) {
169
169
  draging.current = false;
170
170
  setValueByPos(event.clientX, event.clientY, 'end');
171
171
  };
172
- var onMouseDown = function (event) {
173
- setValueByPos(event.clientX, event.clientY, 'start');
174
- setValueByPos(event.clientX, event.clientY, 'move');
175
- };
176
- var onMouseUp = function (event) {
177
- draging.current = false;
178
- setValueByPos(event.clientX, event.clientY, 'end');
179
- };
180
172
  useEffect(function () {
181
173
  if (refRail.current) {
182
174
  var delta = percent * (vertical ? refRail.current.clientHeight : refRail.current.clientWidth);
@@ -187,7 +179,7 @@ export var Slider = function (props) {
187
179
  var elementStyleOrClass = getElementStyleOrClass();
188
180
  var handleStyle = __assign(__assign({}, (typeof elementStyleOrClass.handle === 'object' ? elementStyleOrClass.handle : undefined)), (vertical ? { top: -handleSize / 2 } : { left: '100%', marginLeft: -handleSize / 2 }));
189
181
  return (h("div", { id: id, className: rootClassName, style: __assign({}, rowCenterCenter) },
190
- h("div", { ref: refRail, className: typeof elementStyleOrClass.rail === 'string' ? elementStyleOrClass.rail : '', style: __assign({}, (typeof elementStyleOrClass.rail === 'object' ? elementStyleOrClass.rail : undefined)), draggable: true, onMouseDown: onMouseDown, onMouseUp: onMouseUp, onDragStart: onDragStart, onDrag: onDrag, onDragEnd: onDragEnd }, refRail.current &&
182
+ h("div", { ref: refRail, className: typeof elementStyleOrClass.rail === 'string' ? elementStyleOrClass.rail : '', style: __assign({}, (typeof elementStyleOrClass.rail === 'object' ? elementStyleOrClass.rail : undefined)), draggable: true, onDragStart: onDragStart, onDrag: onDrag, onDragEnd: onDragEnd }, refRail.current &&
191
183
  h("div", { className: typeof elementStyleOrClass.track === 'string' ? elementStyleOrClass.track : '', style: trackStyle },
192
184
  h("div", { ref: handleRef, className: typeof elementStyleOrClass.handle === 'string' ? elementStyleOrClass.handle : '', style: __assign(__assign({}, handleStyle), { position: 'absolute' }) })))));
193
185
  };