Long press to drag

This commit is contained in:
Richard Ramos 2018-12-06 09:38:02 -04:00
parent 590b4a3fdd
commit 167a330b06

View File

@ -123,7 +123,7 @@ class PollOptions extends Component {
<Typography variant="headline">Create a Poll</Typography>
<Typography variant="body1" style={{marginTop: '20px'}}>Add options to the poll</Typography>
<a onClick={this.handleClickOpen} className="addOption"><img src="images/plus-button.svg" width="40" />Add option</a>
<SortableList lockAxis={"y"} distance={10} items={this.state.options} editOption={this.editOption} removeOption={this.removeOption} onSortEnd={this.onSortEnd} />
<SortableList lockAxis={"y"} pressDelay={200} items={this.state.options} editOption={this.editOption} removeOption={this.removeOption} onSortEnd={this.onSortEnd} />
</div>
<div className="buttonNav">