changes on server
This commit is contained in:
@@ -6,6 +6,7 @@ import { forceSimulation, forceLink, forceManyBody, forceCenter, forceX, forceY,
|
||||
import { Wiki, Page } from './wiki.js';
|
||||
import EventEmitter from 'eventemitter3';
|
||||
import { json } from 'd3-fetch';
|
||||
import { mobilecheck } from './mobilecheck.js';
|
||||
|
||||
// import { ForceNet } from './forcenet.js';
|
||||
|
||||
@@ -133,13 +134,24 @@ export class Map {
|
||||
.on("zoom", () => {
|
||||
this.content.attr("transform", event.transform);
|
||||
// console.log("transform", event.transform, this.content.attr("transform"));
|
||||
})
|
||||
.filter(function () {
|
||||
// console.log("filter", event);
|
||||
if (event.touches && event.touches.length == 1) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
|
||||
this.rect = this.svg.append("rect")
|
||||
.attr("width", 1000)
|
||||
.attr("height", 1000)
|
||||
.style("fill", "none");
|
||||
// .style("pointer-events", "all")
|
||||
// .call(this.zoom);
|
||||
if (!mobilecheck()) {
|
||||
this.rect.style("pointer-events", "all")
|
||||
.call(this.zoom);
|
||||
}
|
||||
|
||||
this.content = this.svg.append("g")
|
||||
.attr("id", "content"),
|
||||
this.linksg = this.content.append("g")
|
||||
|
||||
Reference in New Issue
Block a user