From f0983f54c7ea863855a0e035e784bf45f1e29c5b Mon Sep 17 00:00:00 2001
From: Jules Laplace <julescarbon@gmail.com>
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 {
           </div>
           <div class='about'>
             <div>
-              {painting.title}<br/>
-              {painting.medium}<br/>
-              {painting.date}<br/>
-              {painting.image.caption}<br/>
+              <div>{painting.title}</div>
+              <div>{painting.medium}</div>
+              <div>{painting.date}</div>
+              <div>{painting.image.caption}</div>
               <br/>
               <Link to={'/painting/' + painting.id}>
                 More info &gt;
-- 
cgit v1.2.3-70-g09d2

