Skip to content

Commit

Permalink
navigation adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Lily2point0 committed Jun 13, 2017
1 parent d7c7dcd commit b2df600
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions src/js/oCrossword.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ OCrossword.prototype.assemble = function assemble() {
e.target.value = '';
gridSync.grid.textContent = e.target.value;

if(gridSync.defSync) {
if(!!gridSync.defSync) {
let defSync = cluesEl.querySelector('input[data-link-identifier="' + gridSync.defSyncInput +'"]');
defSync.value = e.target.value;
}
Expand Down Expand Up @@ -674,8 +674,8 @@ OCrossword.prototype.assemble = function assemble() {

setTimeout(function(){
gridSync.grid.textContent = e.target.value;
if(gridSync.defSync) {

if(!!gridSync.defSync) {
let defSync = cluesEl.querySelector('input[data-link-identifier="' + gridSync.defSyncInput +'"]');
defSync.value = e.target.value;
}
Expand Down Expand Up @@ -795,18 +795,15 @@ OCrossword.prototype.assemble = function assemble() {

if(!isMobile) {
isTab = true;
}

if(direction === 1) {
clueNavigationNext.click();
} else {
if(isTouch()) {
clueNavigationPrev.click();

if(direction === 1) {
clueNavigationNext.click();
} else {
def.click();
def.click();
}
} else {
isTab = false;
}

}
}

Expand Down

0 comments on commit b2df600

Please sign in to comment.