Comments (6)
Meanwhile, I took your code and created a category class with it. Works like a charm! Thanx
from mdcparallaxview.
Sorry for the slow turnaround on this. A pull request would make it a lot easier to add, otherwise I will try and implement this myself (probably based on the code sample above) sometime soon.
It's difficult to add it myself since I can't be sure I understand the specific use case this sample code is trying to address--I have a good idea, but after implementing I will have to ping you in order to make sure my changes meet your needs.
from mdcparallaxview.
I just submitted a pull request.
Here is a screenshot of an app I'm building using your awesome ParalaxView, inserting a MKMapView as a backgroundView and a UITableView as a foregroundView. Everything works really sweet, but I still can't figure out why the mapView won't scroll nor zoom when the hitTest is effectively returning the backgroundView when touched...
from mdcparallaxview.
The fact that the map view is nested within a scroll view might have something to do with the scrolling problems. I will keep this ticket open as a means of tracking the solution to the scroll problem.
from mdcparallaxview.
So the problem with that is the hitpoint is not being passed to the background view. So instead of return _backgroundView; . I changed it to return [_backgroundView hitTest:point withEvent:event]; and now it works.
from mdcparallaxview.
Brilliant, @phongleq! Thanks so much. I've updated the podspec to include the changes you suggested, please update if necessary.
from mdcparallaxview.
Related Issues (8)
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 mdcparallaxview.