File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -224,27 +224,15 @@ namespace jorts {
224224 }
225225
226226
227- public void reset_zoom () {
228- if (this . zoom != 100 ) {
229- this . remove_css_class (this . zoom. to_string());
230- this . zoom = 100 ;
231- this . add_css_class (this . zoom. to_string());
232- }
233- }
234-
235227 public void zoom_in () {
236228 if ((this . zoom + 25 ) <= max_zoom) {
237- this . remove_css_class (this . zoom. to_string());
238- this . zoom = this . zoom + 25 ;
239- this . add_css_class (this . zoom. to_string());
229+ this . set_zoom((this . zoom + 25 ));
240230 }
241231 }
242232
243233 public void zoom_out () {
244234 if ((this . zoom - 25 ) >= min_zoom) {
245- this . remove_css_class (this . zoom. to_string());
246- this . zoom = this . zoom - 25 ;
247- this . add_css_class (this . zoom. to_string());
235+ this . set_zoom((this . zoom - 25 ));
248236 }
249237 }
250238
You can’t perform that action at this time.
0 commit comments