Skip to content

ResizableBox can be resized only once with touch screen #32

@toddlxt

Description

@toddlxt

Hi STRML,
First I want to thank you for your great work.
I'm using react-resizable. It works fine with mouse events but ResizableBox can be resized only once with touch screen(tested Chrome49+Windows10, and safari+iOS 9.3.1). I traced the error and it happens in Resizable.js line 125 and 126. When a touch event is ended, deltaX and deltaY are NaN. I simply added some code to convert NaN to 0, then it works fine.
Another issue is that the resize event doesn't prevent default touch event. When I use a touch screen to resize ResizableBox, the page scrolls when the box is been resizing. I used 'react-tappable'() to wrap the ResizableBox, then it works very well with touch screen. I think it's better if you can add a property to ResizableBox which can prevent default touch event.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions