diff --git a/index.html b/index.html index 79c4701..aad61cd 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,20 @@ - Vite + React + @wethegit/react-gallery +
diff --git a/package-lock.json b/package-lock.json index 5e0ec01..0869c88 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@wethegit/react-gallery", - "version": "3.0.1", + "version": "3.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@wethegit/react-gallery", - "version": "3.0.1", + "version": "3.0.2", "license": "MIT", "dependencies": { "prop-types": "~15.8.1", diff --git a/package.json b/package.json index e61f81c..a9c3d11 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wethegit/react-gallery", - "version": "3.0.1", + "version": "3.0.2", "description": "A customizable, accessible gallery component for React projects.", "files": [ "dist" diff --git a/src/lib/components/gallery-context.jsx b/src/lib/components/gallery-context.jsx index ad556fc..d446bfb 100644 --- a/src/lib/components/gallery-context.jsx +++ b/src/lib/components/gallery-context.jsx @@ -118,7 +118,7 @@ export const Gallery = ({ return (
{children} diff --git a/src/lib/components/gallery.css b/src/lib/components/gallery.css index 4c7768b..9458597 100644 --- a/src/lib/components/gallery.css +++ b/src/lib/components/gallery.css @@ -22,6 +22,10 @@ width: 100%; } +.gallery--draggable { + touch-action: pan-y; +} + .gallery__main { display: grid; grid-template-areas: "item";