Merge pull request #654

Does not select item after touch events
This commit is contained in:
Frédéric Guillot 2017-03-06 17:42:28 -05:00 committed by GitHub
commit dc6ec50806
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") {