react-iscroll icon indicating copy to clipboard operation
react-iscroll copied to clipboard

ease options with scrollToElement

Open edencorbin opened this issue 8 years ago • 0 comments

I'm struggling applying a custom ease to scrollToElement, here is my relevant code bits. How would I apply a custom easing style or function to the scrollToElement?

var iScroll = require('iscroll/build/iscroll-probe')
  
      this.scrollRef[0].withIScroll((iScroll) => {
            iScroll.scrollToElement(this.refDict[ref], 500, 0, 0, false)
        })

                            <ReactIScroll ref={el => this.scrollRef[0] = el} iScroll={iScroll}
                                options={{
                                    scrollX: false,
                                    scrollY: true,
                                    probeType: 2,
                                    disableTouch: false,
                                    disablePointer: true,
                                    disableMouse: false,
                                    momentum: true,
                                    deceleration: 0.01,
                                    tap: true,
                                    mouseWheel: true,
                                    useTransition: true
                                }}
                                onScrollEnd={this.onScrollEnd}
                                onRefresh={this.initializeDonorRefs}
                            >

edencorbin avatar Jan 31 '18 13:01 edencorbin