summaryrefslogtreecommitdiff
path: root/client/components/Scroller.jsx
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-06-21 22:19:14 +0200
committerJules Laplace <julescarbon@gmail.com>2017-06-21 22:19:14 +0200
commitf0983f54c7ea863855a0e035e784bf45f1e29c5b (patch)
tree4857dda0dba9d945b4c1198fae4d054c681c2d98 /client/components/Scroller.jsx
parent32858022edf1142d2b05e98290d8cca9b6a8c87a (diff)
mobile css
Diffstat (limited to 'client/components/Scroller.jsx')
-rw-r--r--client/components/Scroller.jsx10
1 files changed, 6 insertions, 4 deletions
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;