@react95/core 7.0.1 → 7.0.2

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.
@@ -270,13 +270,14 @@ var VideoRenderer = function VideoRenderer(_ref5, ref) {
270
270
  width: '70%',
271
271
  marginLeft: 20
272
272
  },
273
- onClick: function onClick(e) {
274
- var el = progressRef.current;
273
+ onChange: function onChange(_ref6) {
274
+ var target = _ref6.target;
275
275
  var video = player.current;
276
- if (video && el) {
277
- var percent = e.nativeEvent.offsetX / el.offsetWidth;
276
+ if (video) {
277
+ var _value = parseInt(target.value);
278
+ var percent = _value / 100;
278
279
  video.currentTime = percent * video.duration;
279
- setProgress(Math.floor(percent / 100));
280
+ setProgress(_value);
280
281
  }
281
282
  }
282
283
  }))));
@@ -261,13 +261,14 @@ var VideoRenderer = function VideoRenderer(_ref5, ref) {
261
261
  width: '70%',
262
262
  marginLeft: 20
263
263
  },
264
- onClick: function onClick(e) {
265
- var el = progressRef.current;
264
+ onChange: function onChange(_ref6) {
265
+ var target = _ref6.target;
266
266
  var video = player.current;
267
- if (video && el) {
268
- var percent = e.nativeEvent.offsetX / el.offsetWidth;
267
+ if (video) {
268
+ var _value = parseInt(target.value);
269
+ var percent = _value / 100;
269
270
  video.currentTime = percent * video.duration;
270
- setProgress(Math.floor(percent / 100));
271
+ setProgress(_value);
271
272
  }
272
273
  }
273
274
  }))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react95/core",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "Windows 95 styleguide",
5
5
  "main": "./cjs",
6
6
  "repository": {
@@ -11,12 +11,11 @@
11
11
  "author": "ggdaltoso <ggdaltoso@gmail.com>",
12
12
  "license": "MIT",
13
13
  "dependencies": {
14
- "@react95/icons": "^2.1.0",
14
+ "@react95/icons": "^2.1.1",
15
15
  "csstype": "^3.0.11",
16
16
  "nanoid": "^3.3.1",
17
17
  "react-draggable": "^4.4.4",
18
18
  "styled-system": "^5.1.5",
19
- "typescript": "^4.6.2",
20
19
  "url-loader": "^4.1.1"
21
20
  },
22
21
  "peerDependencies": {
@@ -33,7 +32,7 @@
33
32
  "sideEffects": [
34
33
  "**/*.{woff2,woff,ttf,eot}"
35
34
  ],
36
- "gitHead": "40e774b5e208822d206d9f6bc202ec1d7c3b0680",
35
+ "gitHead": "8ebdd87d8679cf8882c006be1ce78990dee006dc",
37
36
  "module": "./esm",
38
37
  "private": false,
39
38
  "types": "@types"