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:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user