Comments (6)
This isn't possible due to a restriction in the browser engine. Zooming via the browser menu or keyboard shortcuts should however work as expected. The option is still there for users who have SEB 2.x and 3.x in usage.
from seb-win-refactoring.
@dbuechel Oh well, thanks, I didn't know that. But maybe we could solve this in the meantime as a workaround, where the browser window recognizes ctrl + mouse wheel and then executes the logic behind the zoom in/out button?
PreviewMouseWheel += Window_ZoomMouseWheel;
private void Window_ZoomMouseWheel(object sender, MouseWheelEventArgs e)
{
if (Keyboard.Modifiers == ModifierKeys.Control)
{
if (e.Delta > 0)
ZoomInRequested?.Invoke();
else if (e.Delta < 0)
ZoomOutRequested?.Invoke();
}
}
from seb-win-refactoring.
This unfortunately doesn't work, as the browser engine is embedding its own window structure within the browser window. The event handler you're using will only catch events which are anywhere over the window except the browser control (i.e. browser content) itself.
from seb-win-refactoring.
I honestly wonder why you would like to use ctrl + mouse wheel for zooming web pages. That sounds like a very non-standard, outdated way (I think besides old Windows Firefox versions and therefore SEB 2.x, no other browser supports that, mostly they would use keyboard shortcuts, or am I wrong?).
from seb-win-refactoring.
It is difficult to see how the browser control is embedded. But as I have seen, there are functions and solutions for zooming from the browser control, also for the mouse wheel.
https://github.com/cefsharp/CefSharp/blob/master/CefSharp.Wpf/ChromiumWebBrowser.cs#L262
https://stackoverflow.com/a/39220412
@danschlet some students have complained to us that their normal way of zooming no longer works. But for me this is also a normal way to zoom, which to my knowledge works in all browsers (e.g. Edge Chromium) and other applications.
from seb-win-refactoring.
Yes, that is correct, CTRL+mouse wheel is a standard way to zoom (at least on Windows). But we're using the Windows Forms version of the CefSharp browser control and the last time I checked, it unfortunately wasn't possible to implement zooming via CTRL+mouse wheel for it. If you have news that this changed, please point me to them and I'll of course implement the functionality for an upcoming version.
from seb-win-refactoring.
Related Issues (20)
- Error for install SEB
- SEB - Office Programms - EntraID(AzureAD) 2FA HOT 3
- Prohibited Display Configuration HOT 1
- SEB Failed to start please consult the log files for more information SEB version 3.7.0 HOT 4
- SEB Failed to Launch HOT 4
- SEB Failed to Start New Session HOT 1
- Session Start Error HOT 1
- Cant choose organisation when starting SEB - Blank White Window HOT 3
- cant detect droidcam HOT 2
- SEB Initializing Kiosk Mode keep flashing when in the browser. HOT 6
- SEB - An expected error occured while trying to load configuration resource HOT 3
- SEB session error HOT 3
- Safe exam config issue HOT 2
- Set the new desktop wallpaper HOT 1
- Caught unexpected exception while performing operation 'LazyInitializationOperation'! HOT 1
- Application Error: "An unrecoverable error has occurred" (Configuration & Browser Exam Key Calculation) HOT 38
- Blacklisting non-vm computer as vm HOT 6
- ReadSpeaker DocReader in SEB 3.7 HOT 4
- Copy-Paste Issues with Safe Exam Browser 3.7.0 HOT 4
- intallation stuck on WebView2 Runtime installation HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from seb-win-refactoring.