File tree 2 files changed +11
-11
lines changed
2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 403
403
window . removeEventListener ( 'DOMMouseScroll' , handleMouseWheel ) ;
404
404
window . removeEventListener ( 'mousewheel' , handleMouseWheel ) ;
405
405
406
- var pages = document . querySelectorAll ( '.page' ) ;
406
+ var pages = document . querySelectorAll ( '.pdfViewer. page' ) ;
407
407
angular . forEach ( pages , function ( page ) {
408
408
angular . element ( page ) . children ( ) . css ( 'pointer-events' , 'none' ) ;
409
409
} ) ;
429
429
console . warn ( "PDFViewerApplication.pdfViewer is not set" ) ;
430
430
}
431
431
432
- var pages = document . querySelectorAll ( '.page' ) ;
432
+ var pages = document . querySelectorAll ( '.pdfViewer. page' ) ;
433
433
angular . forEach ( pages , function ( page ) {
434
434
var element = angular . element ( page ) ;
435
435
var pageNum = element . attr ( 'data-page-number' ) ;
453
453
} ) ;
454
454
455
455
if ( shouldDigest ) $scope . $apply ( ) ;
456
- } , 200 , 0 , false ) ;
456
+ } , 1000 , 0 , false ) ;
457
457
$element . on ( '$destroy' , function ( ) {
458
458
$interval . cancel ( poller ) ;
459
459
} ) ;
474
474
} ) ;
475
475
476
476
// watch other attributes
477
- $scope . $watch ( function ( ) {
477
+ $element . on ( '$destroy' , $ scope. $watch ( function ( ) {
478
478
return $attrs ;
479
479
} , function ( ) {
480
480
if ( $attrs . open === 'false' ) {
499
499
if ( $attrs . height ) {
500
500
document . getElementById ( 'outerContainer' ) . style . height = $attrs . height ;
501
501
}
502
- } ) ;
502
+ } ) ) ;
503
503
}
504
504
} ;
505
505
} ] ) ;
506
- } ( ) ;
506
+ } ( ) ;
Original file line number Diff line number Diff line change 100
100
window . removeEventListener ( 'DOMMouseScroll' , handleMouseWheel ) ;
101
101
window . removeEventListener ( 'mousewheel' , handleMouseWheel ) ;
102
102
103
- var pages = document . querySelectorAll ( '.page' ) ;
103
+ var pages = document . querySelectorAll ( '.pdfViewer. page' ) ;
104
104
angular . forEach ( pages , function ( page ) {
105
105
angular . element ( page ) . children ( ) . css ( 'pointer-events' , 'none' ) ;
106
106
} ) ;
126
126
console . warn ( "PDFViewerApplication.pdfViewer is not set" ) ;
127
127
}
128
128
129
- var pages = document . querySelectorAll ( '.page' ) ;
129
+ var pages = document . querySelectorAll ( '.pdfViewer. page' ) ;
130
130
angular . forEach ( pages , function ( page ) {
131
131
var element = angular . element ( page ) ;
132
132
var pageNum = element . attr ( 'data-page-number' ) ;
150
150
} ) ;
151
151
152
152
if ( shouldDigest ) $scope . $apply ( ) ;
153
- } , 200 , 0 , false ) ;
153
+ } , 1000 , 0 , false ) ;
154
154
155
155
$element . on ( '$destroy' , function ( ) {
156
156
$interval . cancel ( poller ) ;
172
172
} ) ;
173
173
174
174
// watch other attributes
175
- $scope . $watch ( function ( ) {
175
+ $element . on ( '$destroy' , $ scope. $watch ( function ( ) {
176
176
return $attrs ;
177
177
} , function ( ) {
178
178
if ( $attrs . open === 'false' ) {
197
197
if ( $attrs . height ) {
198
198
document . getElementById ( 'outerContainer' ) . style . height = $attrs . height ;
199
199
}
200
- } ) ;
200
+ } ) ) ;
201
201
}
202
202
} ;
203
203
} ] ) ;
You can’t perform that action at this time.
0 commit comments