This is a read-only archive of the Framer Community on Facebook.

What is Framer? Join the Community
Return to index
Arturo Goicochea
Posted Sep 18 - Read on Facebook

Hey guys,
Using the Flow component, run into an issue (not sure if I did something wrong). I've added a Layer1 that triggered a scroll component (all good there). Then, added layers (with Layer1 as parent) to serve as hotspots. A click on any of those hotspots does flow.showNext.

That works, but what is happening is that it is counting the touch/click done when scrolling as a click, instead of ignoring the click if it was just to drag (scroll).

Thoughts?

Code:

```
store = new Layer
image: 'images/store.jpg'
width: 375
height: 1109

framerNotebookLink = new Layer
size: 351
point: 12
parent: store
backgroundColor: 'blue'
backgroundColor: ''

fileNotesLink = new Layer
size: 351
x: 12, y: 379
parent: store
backgroundColor: 'blue'
backgroundColor: ''

denikNotebookLink = new Layer
size: 351
x: 12, y:746
parent: store
backgroundColor: 'blue'
backgroundColor: ''

framerItemPage = new Layer
image: 'images/framer-notebook.jpg'
width: 375
height: 667

fieldItemPage = new Layer
image: 'images/field-notes.jpg'
width: 375
height: 667

denikItemPage = new Layer
image: 'images/denik-notebook.jpg'
width: 375
height: 667

flow = new FlowComponent

flow.showNext(store)

framerNotebookLink.onClick ->
flow.showNext(framerItemPage)

fileNotesLink.onClick ->
flow.showNext(fieldItemPage)

denikNotebookLink.onClick ->
flow.showNext(denikItemPage)
```

1 Comments

Gary Penner

have you tried using "onTap" for the showNext() functions instead of "onClick"? i think i had that issue before and that helped.

Read the entire post on Facebook