Skip to content

Commit a16c749

Browse files
authored
v0.3.0 (#79)
1 parent cfa6c76 commit a16c749

File tree

6 files changed

+29
-33
lines changed

6 files changed

+29
-33
lines changed

CHANGELOG.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,21 @@
1-
```react-gallery-carousel```
1+
# ```react-gallery-carousel```
22

33
[![NPM](https://img.shields.io/npm/v/react-gallery-carousel.svg)](https://www.npmjs.com/package/react-gallery-carousel)
44

5+
## v0.3.0 (2022-10-15)
6+
7+
### Bug Fixes
8+
9+
- Fix issue related to maximizing/minimizing not working when shouldMaximizeOnClick/shouldMinimizeOnClick is on, for Toggle Device Toolbar (simulated mobile devices).
10+
([Issue #74](https://github.com/yifaneye/react-gallery-carousel/issues/74))
11+
12+
- Fix issue related to `npm install` not working for `/example`.
13+
([Issue #72](https://github.com/yifaneye/react-gallery-carousel/issues/72))
14+
15+
### Enhancements
16+
17+
- Update package dependencies. ([Issue #71](https://github.com/yifaneye/react-gallery-carousel/issues/71))
18+
519
## v0.2.10 (2022-08-03)
620

721
### Enhancements

example/src/components/Footer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const Footer = () => {
55
return (
66
<footer className='section'>
77
<div className='action-container'>
8-
<strong>react-gallery-carousel (v0.2.10)</strong>
8+
<strong>react-gallery-carousel (v0.3.0)</strong>
99
<div className='star-button-container'>
1010
<GitHubButton
1111
href='https://github.com/yifaneye/react-gallery-carousel'
File renamed without changes.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-gallery-carousel",
3-
"version": "0.2.10",
3+
"version": "0.3.0",
44
"description": "Mobile-friendly Carousel with batteries included (supporting touch, mouse emulation, lazy loading, thumbnails, fullscreen, RTL, keyboard navigation and customisations).",
55
"author": "yifaneye",
66
"license": "MIT",
@@ -49,7 +49,7 @@
4949
"react": "^16.13.1",
5050
"react-dom": "^16.13.1",
5151
"react-scripts": "^3.4.1",
52-
"react-test-renderer": "^17.0.1"
52+
"react-test-renderer": "16.13.1"
5353
},
5454
"files": [
5555
"dist"

src/utils/useTouch.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ const useTouch = (elementRef, { onTouchMove, onTouchEnd, onTap }) => {
6363
// pan right at or beyond the left edge
6464
if (offsetLeft <= 0 && displacementX > 0) return false;
6565
// pan left at or beyond the right edge
66+
// noinspection RedundantIfStatementJS
6667
if (offsetLeft + width >= width * scale && displacementX < 0) return false;
6768
return true;
6869
};
@@ -93,6 +94,8 @@ const useTouch = (elementRef, { onTouchMove, onTouchEnd, onTap }) => {
9394
};
9495

9596
const handleTouchEnd = (event) => {
97+
// prevent the event from being recognized additionally as a mouse event on simulated mobile devices (e.g. Toggle Device Toolbar on Chrome).
98+
event.preventDefault();
9699
event.stopPropagation();
97100
if (!isTouchStarted) return;
98101
const displacementX = event.changedTouches[0].clientX - touchStartX;

yarn.lock

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -9586,12 +9586,7 @@ react-error-overlay@^6.0.7:
95869586
resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-6.0.9.tgz#3c743010c9359608c375ecd6bc76f35d93995b0a"
95879587
integrity sha512-nQTTcUu+ATDbrSD1BZHr5kgSD4oF8OFjxun8uAaL8RwPBacGBNPf/yAuVVdx17N8XNzRDMrZ9XcKZHCjPW+9ew==
95889588

9589-
"react-is@^16.12.0 || ^17.0.0", react-is@^17.0.1:
9590-
version "17.0.1"
9591-
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.1.tgz#5b3531bd76a645a4c9fb6e693ed36419e3301339"
9592-
integrity sha512-NAnt2iGDXohE5LI7uBnLnqvLQMtzhkiAOLXTmv+qnF9Ky7xAPcX8Up/xWIhxvLVGJvuLiNc4xQLtuqDRzb4fSA==
9593-
9594-
react-is@^16.8.1, react-is@^16.8.4:
9589+
react-is@^16.8.1, react-is@^16.8.4, react-is@^16.8.6:
95959590
version "16.13.1"
95969591
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
95979592
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==
@@ -9656,23 +9651,15 @@ react-scripts@^3.4.1:
96569651
optionalDependencies:
96579652
fsevents "2.1.2"
96589653

9659-
react-shallow-renderer@^16.13.1:
9660-
version "16.14.1"
9661-
resolved "https://registry.yarnpkg.com/react-shallow-renderer/-/react-shallow-renderer-16.14.1.tgz#bf0d02df8a519a558fd9b8215442efa5c840e124"
9662-
integrity sha512-rkIMcQi01/+kxiTE9D3fdS959U1g7gs+/rborw++42m1O9FAQiNI/UNRZExVUoAOprn4umcXf+pFRou8i4zuBg==
9663-
dependencies:
9664-
object-assign "^4.1.1"
9665-
react-is "^16.12.0 || ^17.0.0"
9666-
9667-
react-test-renderer@^17.0.1:
9668-
version "17.0.1"
9669-
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-17.0.1.tgz#3187e636c3063e6ae498aedf21ecf972721574c7"
9670-
integrity sha512-/dRae3mj6aObwkjCcxZPlxDFh73XZLgvwhhyON2haZGUEhiaY5EjfAdw+d/rQmlcFwdTpMXCSGVk374QbCTlrA==
9654+
9655+
version "16.13.1"
9656+
resolved "https://registry.yarnpkg.com/react-test-renderer/-/react-test-renderer-16.13.1.tgz#de25ea358d9012606de51e012d9742e7f0deabc1"
9657+
integrity sha512-Sn2VRyOK2YJJldOqoh8Tn/lWQ+ZiKhyZTPtaO0Q6yNj+QDbmRkVFap6pZPy3YQk8DScRDfyqm/KxKYP9gCMRiQ==
96719658
dependencies:
96729659
object-assign "^4.1.1"
9673-
react-is "^17.0.1"
9674-
react-shallow-renderer "^16.13.1"
9675-
scheduler "^0.20.1"
9660+
prop-types "^15.6.2"
9661+
react-is "^16.8.6"
9662+
scheduler "^0.19.1"
96769663

96779664
react@^16.13.1:
96789665
version "16.14.0"
@@ -10331,14 +10318,6 @@ scheduler@^0.19.1:
1033110318
loose-envify "^1.1.0"
1033210319
object-assign "^4.1.1"
1033310320

10334-
scheduler@^0.20.1:
10335-
version "0.20.1"
10336-
resolved "https://registry.yarnpkg.com/scheduler/-/scheduler-0.20.1.tgz#da0b907e24026b01181ecbc75efdc7f27b5a000c"
10337-
integrity sha512-LKTe+2xNJBNxu/QhHvDR14wUXHRQbVY5ZOYpOGWRzhydZUqrLb2JBvLPY7cAqFmqrWuDED0Mjk7013SZiOz6Bw==
10338-
dependencies:
10339-
loose-envify "^1.1.0"
10340-
object-assign "^4.1.1"
10341-
1034210321
schema-utils@^1.0.0:
1034310322
version "1.0.0"
1034410323
resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-1.0.0.tgz#0b79a93204d7b600d4b2850d1f66c2a34951c770"

0 commit comments

Comments
 (0)