Compare commits

..

No commits in common. "8375e5f1b597bf0b7c2c1fceff0bc02f5574f611" and "4105cbda0993081856fcdf5714293217a8ad8df3" have entirely different histories.

2 changed files with 6 additions and 14 deletions

View File

@ -1340,15 +1340,6 @@ VT100.prototype.setupTouchInputFallback = function(){
this.form.appendChild(this.input) this.form.appendChild(this.input)
this.scr_.parentElement.appendChild(this.form) this.scr_.parentElement.appendChild(this.form)
this.input.addEventListener('blur', () => {
if( this.input.value != '' ){
ch = '\n'
this.key_buf_.push(ch);
setTimeout(VT100.go_getch_, 0);
this.input.value = ''
}
})
this.input.addEventListener("keydown", VT100.handle_onkeypress_, false); this.input.addEventListener("keydown", VT100.handle_onkeypress_, false);
this.input.handler = (e) => { this.input.handler = (e) => {

View File

@ -70,7 +70,7 @@ AFRAME.registerComponent('window', {
if( els.length < 2 ) return if( els.length < 2 ) return
let current = els[ els.length-1 ] let current = els[ els.length-1 ]
let last = els[ els.length-2 ] let last = els[ els.length-2 ]
AFRAME.utils.positionObjectNextToNeighbor( current.object3D , last.object3D, 0.02 ) AFRAME.utils.positionObjectNextToNeighbor( current.object3D , last.object3D, els.length )
} }
}, },
@ -79,10 +79,11 @@ AFRAME.registerComponent('window', {
} }
}) })
AFRAME.utils.positionObjectNextToNeighbor = function positionObjectNextToNeighbor(object, lastNeighbor = null, margin ){ AFRAME.utils.positionObjectNextToNeighbor = function positionObjectNextToNeighbor(object, lastNeighbor = null, neighbours, margin = 0.45, degree = 20) {
// *FIXME* this could be more sophisticated :) // *FIXME* this could be more sophisticated :)
object.position.x = lastNeighbor.position.x + margin object.position.x = lastNeighbor.position.x + ((neighbours-1) * margin)
object.position.y = lastNeighbor.position.y - margin object.position.y = lastNeighbor.position.y
object.position.z = lastNeighbor.position.z + margin object.position.z = lastNeighbor.position.z
//object.rotation.y += THREE.MathUtils.degToRad( (neighbours-1) * degree);
} }