Skip to content

Commit

Permalink
Merge pull request #2 from exoRift/dev
Browse files Browse the repository at this point in the history
Prerelease 0.1.1
  • Loading branch information
exoRift authored Aug 14, 2022
2 parents beab1df + bb49cb9 commit 1527180
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SelectionMixin.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ class SelectionMixin extends React.Component {
launchManipulator (type, e) {
if (!this.state.manipulating) {
const selection = window.getSelection()
const selectionMatches = selection.getRangeAt(0) === this.selectRange
const selectionMatches = selection.rangeCount && selection.getRangeAt(0) === this.selectRange

const selecting = (!selection.isCollapsed && selection.rangeCount) ||
(selection.rangeCount && selectionMatches) /* ||
selectionMatches /* ||
e.target.selectionEnd !== e.target.selectionStart // NOTE: INPUT STUFF */

if (this.state.selecting && selecting && !selectionMatches) { // Disable pad when selection is being manipulated natively
Expand Down
1 change: 1 addition & 0 deletions src/stories/styles/SelectionMixin.css
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
}
#demonstration #text p {
text-align: justify;
text-align-last: justify;
}

#demonstration #instructions {
Expand Down

0 comments on commit 1527180

Please sign in to comment.