Skip to content

Commit 7897271

Browse files
committed
don't show update highlight for genomebrowser mode
1 parent 14e46f2 commit 7897271

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
lines changed

UI/scripts/handleAlongChromosomes.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,12 @@ function nodePositionChange(cy, posmin, posmax) {
247247

248248
//open vertex
249249
function createNewVerAlongChr(cy, area_size, min_contig_len, isGoodEdge, curNodeSet, openNode) {
250-
cy.on('taphold', 'node', function (evt) {
250+
cy.on('tap', 'node', function (evt) {
251+
if (cy.ignoreTap) {
252+
delete cy.ignoreTap;
253+
return
254+
}
255+
251256
var newNode = new Set();
252257
var v = evt.target.id();
253258
openNode.add(v);

UI/scripts/highlight.js

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function add_miss_vertex(connectionList) {
296296
}
297297

298298
function check_miss_vertex(connectionList) {
299-
if (allVertexInCy(connectionList) === false) {
299+
if (allVertexInCy(connectionList) === false && (document.getElementById("select_layout").value === "free_layout")) {
300300
document.getElementById("AlertBoxNotAllVertexPresent").style.visibility = "visible";
301301
} else {
302302
document.getElementById("AlertBoxNotAllVertexPresent").style.visibility = "hidden";
@@ -474,11 +474,7 @@ function highlightAutocompleteSetUp() {
474474
}
475475

476476
function highlightOnTap(cy) {
477-
cy.on('tap', 'node', function (evt) {
478-
if (cy.ignoreTap) {
479-
delete cy.ignoreTap;
480-
return
481-
}
477+
cy.on('taphold', 'node', function (evt) {
482478
var v = evt.target.id();
483479
var highlight_text = document.getElementById('highlight_elements');
484480
highlight_text.value += " " + v;

UI/scripts/openVertex.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ function getYforNewVert(v, u, evt, isGoodEdge) {
1414
}
1515

1616
function createAddNewNode(cy, curNodeSet) {
17-
cy.on('taphold', 'node', function (evt) {
17+
cy.on('tap', 'node', function (evt) {
18+
if (cy.ignoreTap) {
19+
delete cy.ignoreTap;
20+
return
21+
}
22+
1823
var v = evt.target.id();
1924
var needAddVert = [];
2025
var needAddEdge = [];

0 commit comments

Comments
 (0)