mirror of
https://github.com/flarum/framework.git
synced 2024-12-13 07:03:35 +08:00
Fix faulty detection of touch device
This commit is contained in:
parent
ad47f022b7
commit
679f7c6760
|
@ -113,7 +113,7 @@ export default class DiscussionListItem extends Component {
|
||||||
config(element, isInitialized, context) {
|
config(element, isInitialized, context) {
|
||||||
if (isInitialized) return;
|
if (isInitialized) return;
|
||||||
|
|
||||||
if (window.ontouchstart !== 'undefined') {
|
if ('ontouchstart' in window) {
|
||||||
this.$().addClass('slidable');
|
this.$().addClass('slidable');
|
||||||
|
|
||||||
var slidableInstance = slidable(element);
|
var slidableInstance = slidable(element);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user