Comments (3)
It's a good point to not interfere with the native behavior of mousewheels on the entire page, but scrolling while over the image itself seems like that is a common behavior.
I was able to get this working, at least in Chrome. It binds to the div for just the image, so the scrolling works on the rest of the page and only impacts scrolling on the image itself.
function BindMouseWheelScrollEvents() {
$('#divID').bind('mousewheel', function (e) {
e.preventDefault();
var $slider = $(".cropit-image-zoom-input");
var currVal = parseFloat($slider.val());
var increment = (e.originalEvent.wheelDelta > 0) ? 0.1 : (0.1 * -1);
var newVal = currVal + increment;
$slider.val(newVal);
slider.trigger("change"); // This triggers the CropIt code for slider/range changes.
});
}`
from cropit.
I'd say it could be useful in some cases as an option, but it also interferes with the native behavior of mousewheels, which is scrolling the web page. In general I don't think it's a good-to-have but not an essential feature.
from cropit.
Closing due to inactivity.
from cropit.
Related Issues (20)
- IOS photo width problem after uploads
- Crashes in Chrome if 32-bit OS
- Is there an onDrop event in this bundle?
- Watermark addition after the crop
- Resize the crop box not image
- Demo and Documentation doesnt seem to follow HOT 2
- Closed
- How do I use uploaded image in newly generated cropit previews? HOT 1
- Image size override by global css
- Image size is override by global css HOT 1
- Crop it plugin not accepting few dataUri HOT 1
- CSS Loader stuck during onImageLoading
- Cors
- Not Working With all Images HOT 1
- Broken demo
- Keep Image Position Center After Rotate
- solution
- add flip / flop feature in cropit library
- cropit Cannot read property 'push' of undefined HOT 1
- How I can download original size image
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 cropit.