question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android App freeze while opening panel and scrolling list at the same time

See original GitHub issue

I use the template from https://github.com/phonegap/phonegap-template-vue-f7-split-panel and updated both framework7 & framework7-vue to 3.6.5 To reproduce the bug, I just add a f7-list in Home.vue from the template with dummy data so it can be scrolled. Here’s the complete code: https://github.com/freddysu/f7-panel-bug-demo

  • Framework7 version: framework7: 3.6.5, framework7-vue: 3.6.5
  • Platform and Target: Android Cordova app (Not on iOS)
  • Live Link or JSFiddle:

Describe the bug

On physical Android device, when scrolling the list and click on menu icon to open the panel at the same time, the app will freeze.

To Reproduce

Steps to reproduce the behavior:

  1. Scroll the page before it stop and click on menu icon at the same time
  2. The whole app freeze (all you can do now is kill the app)

Expected behavior

Open the panel before/after the scrolling finished without freezing the App.

Actual Behavior

The whole page freeze no matter what you click.

Screenshots

screenshot_20190125-162504

Additional context

I’ve tried not use framework7-vue <left-panel-view /> and use plain framework 7 <div class="panel panel-left panel-reveal"> instead. But the bug still exists. You can only see the bug on physical Android device cuz you need to scroll and then click the menu icon at the same time.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8

github_iconTop GitHub Comments

1reaction
mrbboycommented, Jun 6, 2019

I seem to be having the same issue, I tried keeping track of the scroll and remove class panel-open from the “a” element and add it back in after a timeout of 250. But unfortunately the issue still prevails. Are there any updates?

Update:

I 've manage to get it to work by clearing the timeout in between.

Essentially I 've added an onScroll attribute on each page-content div, that calls a function “scrollHandler()” that removes the “panel-open” class from the navigation bar, and also sets a timeout that will put it back in after 250ms. Very important to clear the timeout everytime the user scrolls.

function scrollStop(){ var navigation = document.getElementById(‘navigation’); navigation.classList.add(“panel-open”); }

function scrollHandler() { var navigation = document.getElementById(‘navigation’); navigation.classList.remove(“panel-open”); if(typeof t !== “undefined”){ clearTimeout(t); } t = setTimeout(scrollStop, 250); }

0reactions
stale[bot]commented, Sep 18, 2019

This issue has been automatically closed due to inactivity. If this issue is still actual, please, create the new one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android App freeze while opening panel and scrolling list at ...
On physical Android device, when scrolling the list and click on menu icon to open the panel at the same time, the app...
Read more >
Slow rendering - Android Developers
If significant layout is happening on each frame, it's possible that you're animating layout, which is likely to cause dropped frames.
Read more >
Fix an Android device that freezes or won't respond
Try the following steps if your phone: Freezes Stops responding Is stuck with the screen on After each step, restart your phone to...
Read more >
RecyclerView crashes when scroll and reload happens at the ...
In my app I am using a RecyclerView , that is supposed to continue loading images when the user scrolls down.
Read more >
334868 - Crash/freeze after scrolling in bookmarks list - Monorail
Open bookmark list(I have many bookmark) ... Scrolling with my track-pad in bookmarks crashes/freezes chrome. ... Still does the same thing each time....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found