Scroll content inside slide (touch devices) in reveal.js - reveal.js

Is there possibility to scroll content inside the slide on touch devices? My content has vertical scroll bar at desktop view, but on touch devices I can't scroll content at all. I guess scroll event is catched by library and is treated as scrolling to nested vertical slides. I will be happy to get some help here, thank you in advance.

Related

Interacting with screen behind UIScrollview

I have a view where content is supposed to scroll over a few elements. One of which is a button. What I did is place the button and all background elements, and then created a scrollview on top of that.
However, the touch events now (obviously) go to the scrollview, and not to the elements in the back. Is it possible to enable interaction through the empty parts of a scroll view?
Screenshot here:
There is a scrollview on top of e.g. the "next" and "edit" buttons. but I'd like these to be clickable anyways.
Thanks.
I'm going to assume that the content you want to scroll is in a subview. ScrollViews always serve as the first layer of any scrollable UI. Put scrollview in your subview then UIView over your ScrollView and over that add your elements.

ios A tableview above a scroll view and the button on the scroll view cannot be tapped

I have a UIScrollView on my screen and there are some UIButtons on the scroll view.
I also have a UITableView which is above the scroll view, i.e. the tableview and the scrollview are overlapped.
Why I did this is because I want left and right swipe to flip pages of the scroll view and up/down swipe to show some text on the tableview.
This works fine except the button on the scroll view cannot be tapped. It seems that the tableview "absorbed" the tap event and it did not pass it to the button on the scrollview.
Is there someway to fix this? Thank you.
This could be a solution but I'm not sure of it because from your question I can't understand your problem very well, you can try it but if it doesn't work we will try a different way. Maybe the problem is the arrangement of the UI elements in your Interface Builder/Storyboard. If I correctly understood your situation you have something like this:
To make to UIButtons clickable you have to be sure they're at the highest level of arrangement inside the UIScrollView since the UITableView could cover them and "absorb" [as you said] the touch input. So my suggestion is: arrange your UI elements following the blue arrow in the picture below, placing the UIButtons on top, in this way they'll be 100% clickable.
If I didn't understand your question could you please shoot a picture like the one I've posted so I can understand it better?

UIScrollview control scrolling

I have an iOS project which needs to "control" the UIScrollview's scrolling. UIScrollview needs to know current scroll position, also needs to limit scroll, and "transfer" the scroll to scroll the UITableView inside it.
I tried to google, apple dev, ... but no luck :(
I have to handle UIPanRecognizer by myself, but it isn't "smooth" like UIScrollview default scrolling (scroll accelerator).
Anyone have an idea?

UIScrollview, how to scroll a page under another window

I have a UISCrollview loading webviews, as the user starts scrolling to go to the next page, I need to have the the coming webpage to scroll into the screen from underneath another UIView that is stationary, I tried changing the alpha but its not really what I am looking for. how can I accomplish that?
For example, the scroll direction is top to bottom, now I have a uiview at the top of the screen which has some static data showing ( title, location, and other text labels ), and as the user scrolls down I want the content to scroll underneath the label ui view. Hope this clarifies it.
If I understand this question correctly I'd say you can't do this with a UIScrollView. Instead, you could have separate views for each UIWebView and handle the panning of one view under another with a UIPanGestureRecognizer.
Also, did you know there can be conflicts when using UIWebView's inside UIScrollView's?

How does Piictu implement both vertical and horizontal scrolling?

The main view of the iOS app "Piictu" is a vertical scrolling list of photo albums. The thumbnails of each album are displayed inline and scroll horizontally.
If you swipe down or up from any point the parent view scrolls vertically, even when the starting point of the gesture on an album thumbnail.
What's your best understanding of how this is done? A vertical swipe gesture recognizer on the parent view and a horizontal swipe gesture recognizer on the album child/sub views?
Or, is this perhaps a UIWebView?
Thanks!
It's a lot simpler than that, or at least it can be done a lot simpler: just nest scroll views. The outer one covers the whole screen and only allowing vertical scrolling. Each series of thumbnails is contained in another, smaller scroll view which only allows horizontal scrolling. I've used this technique myself for an app I was contracted to develop.

Resources