File tree 1 file changed +5
-5
lines changed
1 file changed +5
-5
lines changed 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