mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-01-11 00:22:43 +00:00
Limit Style tab source jumping
This commit is contained in:
@@ -182,7 +182,7 @@ const Editor = createClass({
|
|||||||
},
|
},
|
||||||
|
|
||||||
sourceJump : function(targetLine=null){
|
sourceJump : function(targetLine=null){
|
||||||
if(this.isText() || this.isStyle()) {
|
if(this.isText() || (this.isStyle() && targetLine == 0)) {
|
||||||
if(targetLine == null) {
|
if(targetLine == null) {
|
||||||
const brewPosition = window.frames['BrewRenderer'].contentDocument.getElementsByClassName('brewRenderer').item(0).scrollTop;
|
const brewPosition = window.frames['BrewRenderer'].contentDocument.getElementsByClassName('brewRenderer').item(0).scrollTop;
|
||||||
const pageCollection = window.frames['BrewRenderer'].contentDocument.getElementsByClassName('page');
|
const pageCollection = window.frames['BrewRenderer'].contentDocument.getElementsByClassName('page');
|
||||||
|
|||||||
Reference in New Issue
Block a user