Comments (12)
This one's a gecko problem I'm afraid. Bug filed, however:
https://bugzilla.mozilla.org/show_bug.cgi?id=998502
In the meantime, I submitted a pull request for a hotfix into our internal repo that would apply a zindex equal to the the specified z translation on every surface.
from famous.
You also have to keep in mind that if the containing element has preserve-3d and is rotated, you must account for rotation; therefore you'd have to calculate based on a surface's distance from a global world point which would require some math. This isn't really an issue now for anyone interested in supporting IE, but may bubble up in the future.
from famous.
The final matrices applied to the surface should correctly represent the depth- they get multiplied internally by the browsers rendering engine against the containing elements projection matrix. Our scene graph isn't naive- a rotation matrix multiplied against a translation matrix will produce an output with consistent translation, and vice versa.
To clarify: we'd be mapping from the final matrix before we actually write it to the Surface's html element's internal styles, not as a sum of all z translations applied.
from famous.
Apologies!
from famous.
@ftripier is it safe to close this issue as it is fixed on internal, or should we leave it open until a more permanent solution is found?
from famous.
I'd like to leave the issue open in case Charles and/or the community have input down the line. This is a tricky problem, and my current solution is at best a hack.
from famous.
Chrome also has issues sometimes.
from famous.
@jperl do you have a perspective defined, or are you in a containerSurface?
from famous.
@dmvaldman Yes and yes.
from famous.
you may need to set a perspective on the containerSurface as well, unfortunately we don't expose as API for this yet. Can you try myContainerSurface.context.setPerspective(1000)
?
from famous.
This should be fixed on the most recent release (0.1.2). Would love a confirmation!
from famous.
@dmvaldman I upgraded famo.us and tried setting the perspective on the containerSurface -- I still need to create the container afterwards for it to be overlaid. However when I try to reproduce this outside of our app I cannot :(. I wonder if it is because I am using meteor to render the div used in the surface. Interestingly it works on firefox and safari.
from famous.
Related Issues (20)
- Very bad performance for ScrollView on Android/Cordova HOT 9
- whats happening? HOT 9
- ScrollView breaks when surface content is modified by a third party like Angular. HOT 1
- Using ViewSequence.splice can mess up the internal linked-list HOT 1
- When will "mixed mode" be released? HOT 1
- Utility.clone issue HOT 1
- CORS issue w/ Picasa and slideshow demo HOT 1
- Stress test - Bad performance in Firefox only HOT 1
- FlexibleLayout subview not hidden when its ratio is 0 HOT 1
- Howto build famous without fastclick? HOT 3
- Scroll HOT 2
- Animation Smoothness issue in mobile devices. HOT 1
- mixed mode - native overflow scrolling with famous (+flex view) HOT 4
- Blank homepage of university HOT 1
- Where can we find the docs to the old 0.3.5 version HOT 1
- Weird issues with absolute positioning, movement, and changeContent on iOS HOT 1
- GridView HOT 1
- dev console and CTRL+C HOT 2
- Scrolling problem when height of blocks is less than container height (stuck at the bottom) HOT 2
- What if all the famo.us objects are native ?
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 famous.