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.

.kill() not executing properly on window resize [bug]

See original GitHub issue

when using .kill() eg if i’m going from mobile view with swipe to desktop it dosent clean up all the inline styling

$(window).on('resize', function() {
    if($(window).width() < 800) {
        window.mySwipe = new Swipe(document.getElementById('slider'));
    } else {
        window.mySwipe.kill()
    }
});

Also if i only have to slides it doesn’t clean up properly because of the “special case senario” on line 80 in swipe.js, there is no “special case senario” in the .kill() for that

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:9 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
loup-bruncommented, Oct 24, 2016

Great! So the only thing left is feedback from @AlexanderYW to make sure the issue has been resolved.

0reactions
AlexanderYWcommented, Oct 24, 2016

Awesome job guys, it works like a charm now!

I’m closing this one, since the problem is solved

Read more comments on GitHub >

github_iconTop Results From Across the Web

kill() not working on window resize. Console says timeline not ...
OK, that works, but when I add start(); after tl.kill() The animation acts weird. I want the animation to totally stop and the...
Read more >
How to wait for the 'end' of 'resize' event and only then perform ...
The way this function works is by saving data into a specific scope, so you could call it into different scopes, other than...
Read more >
Window resizing, from corner resize handles, crashes ... - GitLab
I originally encountered this through GTK4-RS Rust bindings and it was suggested that it was an upstream issue, which led me to compiling...
Read more >
Tasklist shows process but taskkill is unable to kill it, even as ...
Reason: There is no running instance of the task. So I tried to kill it with /PID: C:\WINDOWS\system32>taskkill /PID 8336 /F.
Read more >
How to Kill a Windows Service which is stuck at stopping - 4iT
Problem I found is, once the PID killed successfully, when I went to restart the service I got: Windows could not start the...
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