commit
dc6ec50806
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) {
|
var touchHandler = function (e) {
|
||||||
if (typeof e.touches != 'undefined' && e.touches.length <= 1) {
|
if (typeof e.touches != 'undefined' && e.touches.length <= 1) {
|
||||||
|
Miniflux.Event.lastEventType = "touch";
|
||||||
var touch = e.touches[0];
|
var touch = e.touches[0];
|
||||||
var swipedistance = null;
|
var swipedistance = null;
|
||||||
var element = null;
|
var element = null;
|
||||||
|
@ -128,7 +128,7 @@ Miniflux.Item = (function() {
|
|||||||
|
|
||||||
function hideItem(item)
|
function hideItem(item)
|
||||||
{
|
{
|
||||||
if (Miniflux.Event.lastEventType !== "mouse") {
|
if (Miniflux.Event.lastEventType !== "mouse" && Miniflux.Event.lastEventType !== "touch") {
|
||||||
var items = document.getElementsByTagName("article");
|
var items = document.getElementsByTagName("article");
|
||||||
|
|
||||||
if (items[items.length-1].id === "current-item") {
|
if (items[items.length-1].id === "current-item") {
|
||||||
|
Loading…
Reference in New Issue
Block a user