From 46102d1a76da7bccda0344560c6e5d23419bc250 Mon Sep 17 00:00:00 2001 From: coderaiser Date: Thu, 4 Apr 2019 11:42:59 +0300 Subject: [PATCH] fix(listeners) unable to navigate into folders (#235) --- client/listeners/index.js | 23 ++++++++++------------- 1 file changed, 10 insertions(+), 13 deletions(-) diff --git a/client/listeners/index.js b/client/listeners/index.js index d0b5439e..a9cea40a 100644 --- a/client/listeners/index.js +++ b/client/listeners/index.js @@ -286,20 +286,17 @@ function onTouch(event) { const current = getLIElement(event.target); const isDir = DOM.isCurrentIsDir(current); - if (!isDir){ - - const isCurrent = DOM.isCurrentFile(current); - - if (!isCurrent) - return; - - CloudCmd.loadDir({ - path: DOM.getCurrentPath(current), - }); + if (!isDir) + return CloudCmd.View.show(); - } else { - CloudCmd.View.show(); - } + const isCurrent = DOM.isCurrentFile(current); + + if (!isCurrent) + return; + + CloudCmd.loadDir({ + path: DOM.getCurrentPath(current), + }); } /*