Skip to content

Commit

Permalink
Editor: Tweaked cursors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrdoob committed Aug 31, 2020
1 parent 63b9e6c commit f32bb9f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 1 addition & 2 deletions editor/css/main.css
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,6 @@ input.Number {
font-size: 12px;
border: 0px;
padding: 2px;
cursor: col-resize;
}

select {
Expand All @@ -303,7 +302,7 @@ select {
width: 5px;
bottom: 0px;
/* background-color: rgba(255,0,0,0.5); */
cursor: ew-resize;
cursor: col-resize;
}

#viewport {
Expand Down
6 changes: 4 additions & 2 deletions editor/js/libs/ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,7 @@ function UINumber( number ) {
var scope = this;

var dom = document.createElement( 'input' );
dom.style.cursor = 'ns-resize';
dom.className = 'Number';
dom.value = '0.00';

Expand Down Expand Up @@ -690,7 +691,7 @@ function UINumber( number ) {
function onBlur() {

dom.style.backgroundColor = 'transparent';
dom.style.cursor = 'col-resize';
dom.style.cursor = 'ns-resize';

}

Expand Down Expand Up @@ -812,6 +813,7 @@ function UIInteger( number ) {
var scope = this;

var dom = document.createElement( 'input' );
dom.style.cursor = 'ns-resize';
dom.className = 'Number';
dom.value = '0';

Expand Down Expand Up @@ -903,7 +905,7 @@ function UIInteger( number ) {
function onBlur() {

dom.style.backgroundColor = 'transparent';
dom.style.cursor = 'col-resize';
dom.style.cursor = 'ns-resize';

}

Expand Down

0 comments on commit f32bb9f

Please sign in to comment.