Does not select item after touch events

This commit is contained in:
denfil 2017-03-05 14:19:44 +03:00
parent 9056c8d4ef
commit a6b96bf58e
3 changed files with 3 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -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;

View File

@ -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") {