Comments (7)
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.
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.
probably a timeout(200, function(){}) might do it? Not the greatest... or a rollover event on the List to activate it again?
from zimjs.
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.
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.
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.
Did you try list.scale = 1/frame.scale? And still use the fit mode.
from zimjs.
Related Issues (20)
- Frame LoadAssets Problem HOT 2
- centerReg() does not working on ZimJS version 10 HOT 2
- Label.labelWidth change issue. HOT 1
- Zim.Frame("tagID") does not work well. HOT 3
- In IE11, the Frame can't load all images succeeded in the first time. HOT 4
- [Question] Can a movable element be present on more than 1 square? HOT 1
- Refactoring code HOT 4
- hi, is it possible run on an environment which has no dom bom environment HOT 25
- 2 bugs found. HOT 2
- bug report: SVGContainer("xxx.svg") parse error, but bitmap ("xxx.svg") works. HOT 3
- using zimjs in angular project HOT 4
- Drag make animation weird in ZIMSHIM (adobe animate) HOT 2
- please update typing definition for typescript user HOT 1
- Where is library repository? HOT 1
- Render to Three JS Canvas Texture HOT 4
- Invalid redirect HOT 1
- access to plasma zapp not working HOT 1
- ZIM NPM, Vue, Svelte, React and Angular HOT 1
- ball movement with connected physics HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zimjs.