Quantcast
Channel: GoJS - Northwoods Software
Viewing all articles
Browse latest Browse all 7069

Canvas scrolling to top of the page on click

$
0
0

@davycoolsaet wrote:

I have a canvas which is bigger than my screen (800px) and every time i scoll on the page and click the canvas, my page scrolls to the top of the page.

I have already tried to set scrollsPageOnFocus to false and also tried to use:
myDiagram.doFocus = function() {
var x = window.scrollX || window.pageXOffset;
var y = window.scrollY || window.pageYOffset;
go.Diagram.prototype.doFocus.call(this);
window.scrollTo(x, y);
}

Both don’t resolve the issue.

We have a product license and are using the latest version 2.0.12. This was tested on both IE and Chrome.

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 7069

Trending Articles