Giter Site home page Giter Site logo

Comments (7)

danzen avatar danzen commented on May 30, 2024

Okay - will take a look as soon as we can. We have added it to the bugs list in Slack at https://zimjs.com/slack - you could try caching the List as the window is scrolling and uncaching it when it is not for now...

from zimjs.

dnvs avatar dnvs commented on May 30, 2024

thank you ! it looks improved when using cache.
but it will show error when mouse up, may change normal after 1-2 sec, is there any event about this?

my code :

page.on("scrolling",(e) => {
items.forEach(element => {
if(element.enabled){
element.enabled=false;
element.cache();
}
});
})
page.on("pressup",(e) => {
items.forEach(element => {
element.enabled=true;
element.uncache();
});
})

from zimjs.

danzen avatar danzen commented on May 30, 2024

probably a timeout(200, function(){}) might do it? Not the greatest... or a rollover event on the List to activate it again?

from zimjs.

dnvs avatar dnvs commented on May 30, 2024

ok.. i modified drag and window class ,hardcode them for temprary use, it seems peace now, but hope you can fix them next version .thankyou.

from zimjs.

danzen avatar danzen commented on May 30, 2024

Hi @dnvs - just looked into this... the stage update is being called from the slide functionality which calls zim.drag() with slide. That gives you slide snap and throwing content effect. ZIM has a Ticker which acts as a queue for all stage updates. So if anything adds a function with Ticker.add() the ticker will then run and update the stage. ZIM animate() for instance, adds to the ticker during its animation. ZIM drag() does as well. Well... ZIM drag() with slide was adding a permanent function to the Ticker. After some months of using slide, we found we wanted to know when sliding stopped so we put in a calculation and dispatch a slidestop event. At that time, we should have also removed the Ticker function and then add it again at mousedown. That is what we have now and it works well. So we have patched 10.9.0 with the update. Thank you so much for reporting the issues.

The Window still has a hover ticker... and it takes a second or so to animate the scrollbars out. We also noticed that animate() is calling updates while it is in a wait state. So we will look into that in the future.

Also... we are not really expecting scrollable content to be made in ZIM. We usually use pages and swipe between them with the Pages class. That way, the interfaces, etc. can be cached as they are swiped and otherwise they just stay in one place. I would be interested to see what you have made when you are done! And... if you want, please join us on ZIM Slack at https://zimjs.com. Cheers.

from zimjs.

dnvs avatar dnvs commented on May 30, 2024

thank you , actually i need a 'keep original width/height' horizontal list with item, so i have to modify your list code to adapt it for temporary use....

from zimjs.

danzen avatar danzen commented on May 30, 2024

Did you try list.scale = 1/frame.scale? And still use the fit mode.

from zimjs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.