Does not select item after touch events
This commit is contained in:
parent
9056c8d4ef
commit
a6b96bf58e
2
assets/js/app.min.js
vendored
2
assets/js/app.min.js
vendored
File diff suppressed because one or more lines are too long
@ -338,6 +338,7 @@ Miniflux.Event = (function() {
|
||||
};
|
||||
var touchHandler = function (e) {
|
||||
if (typeof e.touches != 'undefined' && e.touches.length <= 1) {
|
||||
Miniflux.Event.lastEventType = "touch";
|
||||
var touch = e.touches[0];
|
||||
var swipedistance = null;
|
||||
var element = null;
|
||||
|
@ -128,7 +128,7 @@ Miniflux.Item = (function() {
|
||||
|
||||
function hideItem(item)
|
||||
{
|
||||
if (Miniflux.Event.lastEventType !== "mouse") {
|
||||
if (Miniflux.Event.lastEventType !== "mouse" && Miniflux.Event.lastEventType !== "touch") {
|
||||
var items = document.getElementsByTagName("article");
|
||||
|
||||
if (items[items.length-1].id === "current-item") {
|
||||
|
Loading…
Reference in New Issue
Block a user