From f0983f54c7ea863855a0e035e784bf45f1e29c5b Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 21 Jun 2017 22:19:14 +0200 Subject: mobile css --- client/components/Scroller.jsx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'client/components/Scroller.jsx') diff --git a/client/components/Scroller.jsx b/client/components/Scroller.jsx index 2c67a9a..05758b8 100644 --- a/client/components/Scroller.jsx +++ b/client/components/Scroller.jsx @@ -1,6 +1,7 @@ import { h, Component } from 'preact' import { Lethargy } from 'lethargy' import { Link } from 'react-router-dom' +import util from '../util' export default class Scroller extends Component { constructor() { @@ -15,6 +16,7 @@ export default class Scroller extends Component { document.body.addEventListener('DOMMouseScroll', this.onWheel) } onWheel(e) { + if (util.isMobile) return; e.preventDefault() e.stopPropagation() const scrollDirection = this.lethargy.check(e) @@ -35,10 +37,10 @@ export default class Scroller extends Component {
- {painting.title}
- {painting.medium}
- {painting.date}
- {painting.image.caption}
+
{painting.title}
+
{painting.medium}
+
{painting.date}
+
{painting.image.caption}

More info > -- cgit v1.2.3-70-g09d2