0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2025-12-24 18:32:41 +00:00

Limit Style tab source jumping

This commit is contained in:
G.Ambatte
2022-05-09 20:23:39 +12:00
parent 3d9704a392
commit 3c36b7f328

View File

@@ -182,7 +182,7 @@ const Editor = createClass({
},
sourceJump : function(targetLine=null){
if(this.isText() || this.isStyle()) {
if(this.isText() || (this.isStyle() && targetLine == 0)) {
if(targetLine == null) {
const brewPosition = window.frames['BrewRenderer'].contentDocument.getElementsByClassName('brewRenderer').item(0).scrollTop;
const pageCollection = window.frames['BrewRenderer'].contentDocument.getElementsByClassName('page');